Skip to content

Commit 56b63c0

Browse files
committed
github/workflow: test using all Go versions in range [1.16, 1.21]
1 parent befd1e2 commit 56b63c0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
# Adapted from https://github.com/mvdan/github-actions-golang/blob/7aaba8c78195e7b688422b1a3e0733e93d525178/README.md
1+
# Adapted from https://github.com/mvdan/github-actions-golang/blob/b7c76395d24d6483ab668e5bf1e6d0cb2794c831/README.md
22

33
on: [ 'push', 'pull_request' ]
44
name: BuildAndTest
55
jobs:
66
test:
77
strategy:
88
matrix:
9-
go-version: [ '1.17.x', '1.16.x' ]
9+
go-version:
10+
- '1.16.x'
11+
- '1.17.x'
12+
- '1.18.x'
13+
- '1.19.x'
14+
- '1.20.x'
15+
- '1.21.x'
1016
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
1117
runs-on: ${{ matrix.os }}
1218
steps:
1319
- name: Install Go
14-
uses: actions/setup-go@v2
20+
uses: actions/setup-go@v4
1521
with:
1622
go-version: ${{ matrix.go-version }}
1723
- name: Checkout code
18-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3
1925
- name: Build
2026
run: make build
2127
- name: Test

0 commit comments

Comments
 (0)