build(deps): bump the github-actions group across 1 directory with 3 updates #277
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: Run benchmarks | |
| on: | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Base for comparison is master branch. | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| with: | |
| ref: master | |
| - name: Install Go | |
| uses: actions/[email protected] | |
| with: | |
| go-version: 'stable' | |
| - run: go install golang.org/x/perf/cmd/benchstat@latest | |
| - run: go test -run=none -bench=. -count=7 -benchtime=200ms -timeout=1h ./... > /tmp/prev | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| # Second run of benchmarks | |
| - run: go test -run=none -bench=. -count=7 -benchtime=200ms -timeout=1h ./... > /tmp/curr | |
| - run: benchstat /tmp/prev /tmp/curr |