Skip to content

Commit

Permalink
Update CI to Go 1.18
Browse files Browse the repository at this point in the history
Also only test on the minimum supported version (currently Go 1.12) and
the latest two versions supported by the Go project.
  • Loading branch information
tklauser committed May 4, 2022
1 parent 4e16ac7 commit 3d102a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
test:
strategy:
matrix:
# Minimum supported version (1.12) and the latest few versions
go-version: [1.12, 1.15, 1.16, 1.17]
# Minimum supported version (1.12) and the latest two
go-version: [1.12, 1.17, 1.18]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}

Expand All @@ -27,11 +27,11 @@ jobs:
uses: actions/checkout@v2

- name: Check formatting
if: matrix.go-version == '1.17' && matrix.platform == 'ubuntu-latest'
if: matrix.go-version == '1.18' && matrix.platform == 'ubuntu-latest'
run: diff -u <(echo -n) <(go fmt $(go list ./...))

- name: Check module vendoring
if: matrix.go-version == '1.17' && matrix.platform == 'ubuntu-latest'
if: matrix.go-version == '1.18' && matrix.platform == 'ubuntu-latest'
run: |
go mod tidy
go mod vendor
Expand Down

0 comments on commit 3d102a4

Please sign in to comment.