1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-10 00:29:12 +02:00
opentelemetry-go/.github/workflows/benchmark.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

name: Benchmark
on:
push:
tags:
- v1.*
workflow_dispatch:
env:
DEFAULT_GO_VERSION: "~1.22.2"
jobs:
benchmark:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.DEFAULT_GO_VERSION }}
check-latest: true
cache-dependency-path: "**/go.sum"
- name: Run benchmarks
run: make benchmark | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./benchmarks
key: ${{ runner.os }}-benchmark
- name: Store benchmarks result
uses: benchmark-action/github-action-benchmark@v1.20.1
with:
name: Benchmarks
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./benchmarks/data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
gh-pages-branch: benchmarks
2024-03-28 10:50:27 +02:00
fail-on-alert: true
alert-threshold: "400%"