From 4cf532774e950fa737d6bd4c050cd5373da39bc6 Mon Sep 17 00:00:00 2001 From: "Frederic G. MARAND" Date: Sat, 15 Oct 2022 17:58:19 +0200 Subject: [PATCH] Added Gofmt, go vet, staticcheck. --- .github/workflows/go.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fd111fc..42e6dc3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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/staticcheck-action@v1.2.0 + 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 ./...