.github/workflows: add Go 1.17 to test matrix

Drop 1.15 which is no longer supported upstream.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This commit is contained in:
Tobias Klauser
2021-09-06 10:41:45 -04:00
committed by Matt Layher
parent cb2ece2456
commit 5cc0d2929a
+3 -3
View File
@@ -12,7 +12,7 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
go-version: [1.15, 1.16] go-version: [1.16, 1.17]
platform: [ubuntu-latest, macos-latest] platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
@@ -26,11 +26,11 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Check formatting - name: Check formatting
if: matrix.go-version == '1.16' && matrix.platform == 'ubuntu-latest' if: matrix.go-version == '1.17' && matrix.platform == 'ubuntu-latest'
run: diff -u <(echo -n) <(go fmt $(go list ./...)) run: diff -u <(echo -n) <(go fmt $(go list ./...))
- name: Check Go modules - name: Check Go modules
if: matrix.go-version == '1.16' if: matrix.go-version == '1.17'
run: | run: |
go mod tidy go mod tidy
git diff --exit-code git diff --exit-code