mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
.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:
committed by
Matt Layher
parent
cb2ece2456
commit
5cc0d2929a
@@ -12,7 +12,7 @@ jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.15, 1.16]
|
||||
go-version: [1.16, 1.17]
|
||||
platform: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.platform }}
|
||||
|
||||
@@ -26,11 +26,11 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- 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 ./...))
|
||||
|
||||
- name: Check Go modules
|
||||
if: matrix.go-version == '1.16'
|
||||
if: matrix.go-version == '1.17'
|
||||
run: |
|
||||
go mod tidy
|
||||
git diff --exit-code
|
||||
|
||||
Reference in New Issue
Block a user