mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
31 lines
713 B
YAML
31 lines
713 B
YAML
name: Benchmarks
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
deployments: write
|
|
|
|
jobs:
|
|
benchmark:
|
|
name: Benchmarks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "stable"
|
|
- name: Run benchmark
|
|
run: go test ./... -run=none -bench . | tee bench_output.txt
|
|
|
|
- name: Store benchmark result
|
|
uses: benchmark-action/github-action-benchmark@v1
|
|
with:
|
|
name: Go Benchmark
|
|
tool: 'go'
|
|
output-file-path: bench_output.txt
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
auto-push: true
|
|
summary-always: true |