Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build tags and skipGenerate #95

Merged
merged 3 commits into from
Mar 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update build.yml
Signed-off-by: Oleg Kovalov <oleg@hey.com>
  • Loading branch information
cristaloleg authored Feb 29, 2024
commit 4f80c4c1a53635347e650f2350b08e658f7820ea
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
Loading