tune configuration #3
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: Benchmarks | |
on: | |
push: | |
branches: | |
- jsign-ci-bench | |
permissions: | |
contents: write | |
deployments: write | |
jobs: | |
benchmark: | |
name: Run Go benchmark example | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "stable" | |
- name: Run benchmark | |
run: go test ./... -run=none -bench . | tee bench_output.txt | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Go Benchmark | |
tool: 'go' | |
output-file-path: bench_output.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
alert-threshold: '10%' | |
comment-on-alert: true | |
summary-always: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@jsign,@kevaundray' |