From a1f547755984e75e00630506985048cd79b1b323 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sun, 10 Dec 2023 16:41:55 +0100 Subject: [PATCH 1/2] Move go vet check --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16cca31..fab2aaa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,10 @@ on: required: false type: boolean +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: run: name: Build @@ -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 @@ -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 }} From 9a73eba278783b6c284d61351f47b2d19d571bf2 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Sun, 10 Dec 2023 16:45:12 +0100 Subject: [PATCH 2/2] meh, whatever --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fab2aaa..c964fcd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,11 +68,11 @@ jobs: - name: Go Test if: ${{ !inputs.skipTests }} - run: go test -v -vet=off -count=1 -race -shuffle=on -coverprofile=coverage.txt ./... + run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./... - name: Go Benchmark if: ${{ !inputs.skipTests }} - run: go test -v -vet=off -shuffle=on -run=^$ -bench=. -benchtime=1x ./... + run: go test -v -shuffle=on -run=^$ -bench=. -benchtime=1x ./... - name: Upload Coverage if: ${{ !inputs.skipTests }}