Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: Package Benchmarks
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
benchmark:
name: Execute Benchmarks
strategy:
matrix:
go-version: [1.19.x]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
stable: false
- name: Checkout code
uses: actions/checkout@v4
- name: Run benchmark
run: go test -bench=. ./... | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Benchmark Results
tool: 'go'
output-file-path: output.txt
benchmark-data-dir-path: dev/bench
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: '@benjivesterby'