Bump golang.org/x/net from 0.7.0 to 0.17.0 #61
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: ci | |
on: [pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v2 | |
- name: Cache go modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | |
restore-keys: ${{ runner.os }}-go- | |
- name: Run go vet | |
run: go vet ./... | |
- name: Check gofmt diff | |
run: | | |
gofmt -d -s $(find . -name '*.go' |grep -v vendor) | |
git diff --exit-code; code=$?; git checkout -- .; (exit $code) | |
- name: Tests | |
shell: bash | |
run: go test ./... |