Skip to content

deps(actions): bump actions/setup-go from 4 to 5 (#55) #12

deps(actions): bump actions/setup-go from 4 to 5 (#55)

deps(actions): bump actions/setup-go from 4 to 5 (#55) #12

Workflow file for this run

name: go benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
benchmark:
name: benchmark regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Run benchmark
run: go test -benchmem -run=^$ -count=5 -benchtime=2s -bench . | tee output.txt
# - name: Download previous benchmark data
# uses: actions/cache@v4
# with:
# path: ./cache
# key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: output.txt
# external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
comment-on-alert: true
comment-always: true
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: "200%"
auto-push: true