mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
0e4c1563e9
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com> Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
34 lines
892 B
YAML
34 lines
892 B
YAML
name: Benchmark
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
env:
|
|
DEFAULT_GO_VERSION: 1.16
|
|
jobs:
|
|
benchmark:
|
|
name: Benchmarks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v3
|
|
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
|
|
alert-threshold: "400%"
|