Repository navigation
Name every Bencher workflow #4
This file contains hidden or 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: Bare Metal PR Benchmarks with Bencher | |
| on: | |
| pull_request: | |
| types: [opened, reopened, edited, synchronize] | |
| jobs: | |
| submit_pr_benchmarks: | |
| name: Submit PR Benchmarks to Bencher Bare Metal | |
| # DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
| permissions: | |
| checks: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: bencherdev/bencher@main | |
| - name: Submit PR Benchmarks with Bencher | |
| run: | | |
| bencher run \ | |
| --project example \ | |
| --key '${{ secrets.BENCHER_API_KEY }}' \ | |
| --branch "$GITHUB_HEAD_REF" \ | |
| --start-point "$GITHUB_BASE_REF" \ | |
| --start-point-hash '${{ github.event.pull_request.base.sha }}' \ | |
| --start-point-clone-thresholds \ | |
| --start-point-reset \ | |
| --adapter json \ | |
| --image example:latest \ | |
| --detach \ | |
| --github-actions '${{ secrets.GITHUB_TOKEN }}' \ | |
| --ci-callback-token '${{ secrets.BENCHER_CALLBACK_TOKEN }}' \ | |
| --exec \ | |
| mock |