mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-09-05 16:47:25 -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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user