Merge pull request #893 from google/logstream-shutdown #1018
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: 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/github-action-benchmark@v1.20.3 | |
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 |