@ -22,7 +22,7 @@ jobs:
test:
test:
strategy:
strategy:
matrix:
matrix:
go-version : [ 1.18 .x ]
go-version : [ 1.18 .x , 1.19.x ]
os : [ ubuntu-latest, macos-latest, windows-latest]
os : [ ubuntu-latest, macos-latest, windows-latest]
runs-on : ${{ matrix.os }}
runs-on : ${{ matrix.os }}
steps:
steps:
@ -41,20 +41,20 @@ jobs:
# Static checks from this point forward. Only run on one Go version and on
# Static checks from this point forward. Only run on one Go version and on
# Linux, since it's the fastest platform, and the tools behave the same.
# Linux, since it's the fastest platform, and the tools behave the same.
- name : Test third-party project builds
- name : Test third-party project builds
if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 8 .x'
if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 9 .x'
run : |
run : |
go install
go install
./scripts/check-third-party.sh
./scripts/check-third-party.sh
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 8 .x'
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 9 .x'
run : ./scripts/crlf-test.sh
run : ./scripts/crlf-test.sh
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 8 .x'
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 9 .x'
run : diff <(echo -n) <(gofmt -d .)
run : diff <(echo -n) <(gofmt -d .)
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 8 .x'
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 9 .x'
run : go vet ./...
run : go vet ./...
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 8 .x'
- if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.1 9 .x'
uses : dominikh/staticcheck-action@v1
uses : dominikh/staticcheck-action@v1
with:
with:
version : "2022.1. 1 "
version : "2022.1. 3 "
install-go : false
install-go : false
# We don't care about GOARCH=386 particularly,
# We don't care about GOARCH=386 particularly,
@ -68,7 +68,7 @@ jobs:
steps:
steps:
- uses : actions/setup-go@v3
- uses : actions/setup-go@v3
with:
with:
go-version : 1.1 8 .x
go-version : 1.1 9 .x
- uses : actions/checkout@v3
- uses : actions/checkout@v3
- name : Test
- name : Test
run : go test -timeout=15m ./...
run : go test -timeout=15m ./...