Skip to content

Merge pull request #901 from google/dependabot/github_actions/slsa-fr… #1040

Merge pull request #901 from google/dependabot/github_actions/slsa-fr…

Merge pull request #901 from google/dependabot/github_actions/slsa-fr… #1040

Workflow file for this run

name: benchmark
on:
# Test new changes
pull_request:
push:
branches:
# Record on merges to main
- main
jobs:
benchmark:
if: ${{ false }}
runs-on: ubuntu-latest
permissions:
# For benchmark-action comment-always
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- run: make bench
env:
HEAD_REF: ${{ env.GITHUB_REF_NAME }}
- uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- uses: benchmark-action/[email protected]
with:
tool: 'go'
output-file-path: test-results/benchmark-results-${{ env.GITHUB_REF_NAME }}.txt
external-data-json-path: ./cache/benchmark-data.json
save-data-file: ${{ github.event_name != 'pull_request' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-on-alert: true
summary-always: true