Restructure: Split core primitives into sub-packages #12
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: Bencher (on PR) | |
on: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
jobs: | |
benchmark_pr_branch: | |
name: Continuous Benchmarking PRs with Bencher | |
# 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: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bencherdev/bencher@main | |
- name: Track PR Benchmarks with Bencher | |
run: | | |
go test -bench . | bencher run \ | |
--project geom2d \ | |
--token '${{ secrets.BENCHER_TOKEN }}' \ | |
--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 \ | |
--testbed ubuntu-latest \ | |
--err \ | |
--adapter go_bench \ | |
--github-actions '${{ secrets.GITHUB_TOKEN }}' |