Refactor error handling and update options for resource testing #32
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ^1.23 | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - name: Set up linter | |
| run: go install github.com/mgechev/revive@latest | |
| - name: Get dependencies | |
| run: go mod tidy | |
| - name: Lint | |
| run: $(go env GOPATH)/bin/revive -config revive.toml -formatter stylish -exclude ./vendor/... ./... | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test -v ./... |