Skip to content

Commit

Permalink
chore: use -short flag in benchmark tests (#431)
Browse files Browse the repository at this point in the history
<!-- Please use this template for your pull request. -->
<!-- Please use the sections that you need and delete other sections -->

## This PR
<!-- add the description of the PR here -->

- Uses -short flag in benchmark tests in order to exclude integration
tests.

### Related Issues
<!-- add here the GitHub issue that this PR resolves if applicable -->

### Notes
<!-- any additional notes for this PR -->

### Follow-up Tasks
<!-- anything that is related to this PR but not done here should be
noted under this section -->
<!-- if there is a need for a new issue, please link it here -->

### How to test
<!-- if applicable, add testing instructions under this section -->

---------

Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
skyerus and beeme1mr authored Feb 27, 2023
1 parent eb3982a commit e68a6aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Run benchmark
run: go test -bench . -benchtime=5s -benchmem ./... | tee output.txt
run: go test -bench=Bench -short -benchtime=5s -benchmem ./... | tee output.txt

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Run benchmark
run: set -o pipefail; go test -bench . -benchtime=5s -benchmem ./... | tee output.txt
run: set -o pipefail; go test -bench=Bench -short -benchtime=5s -benchmem ./... | tee output.txt

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down
2 changes: 1 addition & 1 deletion test-harness

0 comments on commit e68a6aa

Please sign in to comment.