mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-27 20:36:30 -04:00
Run tests on Go 1.18+
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.16, 1.17]
|
go-version: [1.18, 1.23]
|
||||||
platform: [ubuntu-latest, macos-latest]
|
platform: [ubuntu-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
@@ -30,13 +30,11 @@ jobs:
|
|||||||
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.17'
|
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
if: matrix.go-version == '1.17'
|
|
||||||
run: diff -u <(echo -n) <(gofmt -d .)
|
run: diff -u <(echo -n) <(gofmt -d .)
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
|||||||
Reference in New Issue
Block a user