Fix: Now give errors if lookup methods fail, refactor accordingly #1453
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: Go | |
on: | |
push: | |
paths: | |
- "**.go" | |
pull_request: | |
paths: | |
- "**.go" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Build | |
run: go build -v ./cmd/... | |
- name: vet | |
run: go vet ./... | |
- name: gofmt | |
uses: Jerome1337/gofmt-action@v1.0.4 | |
with: | |
gofmt-flags: "-l -d" | |
- name: golint | |
uses: Jerome1337/golint-action@v1.0.2 | |
- name: Revive Action | |
uses: morphy2k/revive-action@v2.5.1 | |
- name: Tests | |
run: go test -v ./... |