Skip to content

Commit

Permalink
Added Gofmt, go vet, staticcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgm committed Oct 15, 2022
1 parent b2d47f2 commit 4cf5327
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
with:
go-version: 1.19

- name: Formatting
run: "gofmt -d -s ."

- name: Vet
run: "go vet ./..."

- name: StaticCheck
uses: dominikh/[email protected]
with:
version: "2022.1.3"
install-go: false

- name: Test
# We don't need the benchmarks to run for long, just enough for coverage.
run: mkdir -p coverage; go test -v -race -run=. -bench=. -benchtime=1ms -coverprofile=./coverage/cover.out -covermode=atomic ./...
Expand Down

0 comments on commit 4cf5327

Please sign in to comment.