Skip to content

Refactor error handling and update options for resource testing #32

Refactor error handling and update options for resource testing

Refactor error handling and update options for resource testing #32

Workflow file for this run

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 ./...