Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#183) #674
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.20.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v4.1.1 | |
- name: Cache go modules | |
uses: actions/cache@v4.0.1 | |
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' |