mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
b20691d9a4
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Benchmark
|
|
on:
|
|
push:
|
|
tags:
|
|
- v1.*
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DEFAULT_GO_VERSION: "~1.21.3"
|
|
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.18.0
|
|
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
|
|
auto-push: true
|
|
fail-on-alert: false
|
|
alert-threshold: "400%"
|