ci: fix tests not outputting enough details #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
test: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: web/package.json | |
cache: "npm" | |
cache-dependency-path: web/package-lock.json | |
- run: make web-install web-build | |
- run: make test-env-start | |
- run: make install-deps | |
- run: make bench | |
- uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Gravity Benchmark | |
tool: 'go' | |
output-file-path: test-output | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: '200%' | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@BeryJu' | |
summary-always: true |