forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.16 KB
/
perf.yml
File metadata and controls
43 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Automation - Performance
on:
push:
branches: [main]
permissions: read-all
jobs:
runperf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: oldstable
cache: false
- name: Cache Go
id: go-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: |
~/go/bin
~/go/pkg/mod
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
- name: Run benchmark
run: make gobenchmark
# Disabling until fine-grained permissions token enabled for the
# repository
#- name: Store benchmark result
# uses: benchmark-action/github-action-benchmark@v1
# with:
# tool: 'go'
# output-file-path: benchmarks.txt
# gh-pages-branch: gh-pages
# auto-push: true
# github-token: ${{ secrets.GITHUB_TOKEN }}
# benchmark-data-dir-path: "docs/dev/bench"