Skip to content

Commit

Permalink
Move go vet check
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Dec 10, 2023
1 parent 36179ae commit a1f5477
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
required: false
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run:
name: Build
Expand All @@ -40,9 +44,6 @@ jobs:
- name: Go Format
run: gofmt -s -w . && git diff --exit-code

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

- name: Go Tidy
run: go mod tidy && git diff --exit-code

Expand All @@ -58,17 +59,20 @@ jobs:
- name: Go Build
run: go build -o /dev/null ./...

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

- name: Go Compile Tests
if: ${{ inputs.skipTests }}
run: go test -exec /bin/true ./...

- name: Go Test
if: ${{ !inputs.skipTests }}
run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...
run: go test -v -vet=off -count=1 -race -shuffle=on -coverprofile=coverage.txt ./...

- name: Go Benchmark
if: ${{ !inputs.skipTests }}
run: go test -v -shuffle=on -run=- -bench=. -benchtime=1x ./...
run: go test -v -vet=off -shuffle=on -run=^$ -bench=. -benchtime=1x ./...

- name: Upload Coverage
if: ${{ !inputs.skipTests }}
Expand Down

0 comments on commit a1f5477

Please sign in to comment.