1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-10-31 00:07:40 +02:00

Setup benchmarks github action (#2559)

* setup benchmarks github action

* run on go 1.16

* only run benchmarks on a push

* pin all actions
This commit is contained in:
Damien Mathieu
2022-02-18 20:52:52 +01:00
committed by GitHub
parent 8ebef7563f
commit 5ba3866b4a

32
.github/workflows/benchmark.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Benchmark
on:
push:
branches:
- main
env:
DEFAULT_GO_VERSION: 1.16
jobs:
benchmark:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-go@v2.2.0
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
- name: Run benchmarks
run: make test-bench | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v2.1.7
with:
path: ./benchmarks
key: ${{ runner.os }}-benchmark
- name: Store benchmarks result
uses: benchmark-action/github-action-benchmark@v1.13.0
with:
name: Benchmarks
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./benchmarks/data.json
auto-push: false
fail-on-alert: true