Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kovalov <[email protected]>
  • Loading branch information
cristaloleg authored Feb 29, 2024
1 parent aaabd47 commit 4f80c4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ jobs:
run: go generate ./... && git diff --exit-code

- name: Go Build
run: go build -o /dev/null -tags ${{ inputs.buildTags }} ./...
run: go build -o=/dev/null -tags=${{ inputs.buildTags }} ./...

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

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

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

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

0 comments on commit 4f80c4c

Please sign in to comment.