Bump golang.org/x/net from 0.13.0 to 0.17.0 (#169) #623
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [pull_request, push] | |
env: | |
GO111MODULE: on | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.18.x, 1.19.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v4.1.1 | |
- name: Cache go modules | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Run make fmt | |
if: runner.os != 'Windows' | |
run: | | |
make fmt | |
git diff --exit-code; code=$?; git checkout -- .; (exit $code) | |
- name: Run go vet | |
run: go vet ./... | |
- name: Ensure generating accessors produces a zero diff | |
shell: bash | |
run: cd api && go run gen-accessors.go && git diff --exit-code; code=$?; git checkout -- .; (exit $code) | |
- name: Run make build | |
run: make build | |
- name: Run make test | |
run: make testacc TEST="./split/" TESTARGS='-run=TestProvider' |