...

Text file src/go.opentelemetry.io/otel/.github/workflows/benchmark.yml

Documentation: go.opentelemetry.io/otel/.github/workflows

     1name: Benchmark
     2on:
     3  push:
     4    tags:
     5      - v1.* 
     6  workflow_dispatch: 
     7
     8env:
     9  DEFAULT_GO_VERSION: "~1.21.3"
    10jobs:
    11  benchmark:
    12    name: Benchmarks
    13    runs-on: ubuntu-latest
    14    timeout-minutes: 15
    15    steps:
    16      - uses: actions/checkout@v4
    17      - uses: actions/setup-go@v4
    18        with:
    19          go-version: ${{ env.DEFAULT_GO_VERSION }}
    20          check-latest: true
    21          cache-dependency-path: "**/go.sum"
    22      - name: Run benchmarks
    23        run: make benchmark | tee output.txt
    24      - name: Download previous benchmark data
    25        uses: actions/cache@v3
    26        with:
    27          path: ./benchmarks
    28          key: ${{ runner.os }}-benchmark
    29      - name: Store benchmarks result
    30        uses: benchmark-action/github-action-benchmark@v1.18.0
    31        with:
    32          name: Benchmarks
    33          tool: 'go'
    34          output-file-path: output.txt
    35          external-data-json-path: ./benchmarks/data.json
    36          github-token: ${{ secrets.GITHUB_TOKEN }}
    37          gh-pages-branch: benchmarks
    38          auto-push: true
    39          fail-on-alert: false
    40          alert-threshold: "400%"

View as plain text