Debian Codegraph @

.github/workflows/perf.yml

raw
1 name: Automation - Performance
2
3 on:
4 push:
5 branches: [main]
6
7 permissions: read-all
8
9 jobs:
10 runperf:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
14
15 - name: Setup Go
16 uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
17 with:
18 go-version: oldstable
19 cache: false
20
21 - name: Cache Go
22 id: go-cache
23 uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
24 with:
25 path: |
26 ~/go/bin
27 ~/go/pkg/mod
28 key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
29
30 - name: Run benchmark
31 run: make gobenchmark
32
33 # Disabling until fine-grained permissions token enabled for the
34 # repository
35 #- name: Store benchmark result
36 # uses: benchmark-action/github-action-benchmark@v1
37 # with:
38 # tool: 'go'
39 # output-file-path: benchmarks.txt
40 # gh-pages-branch: gh-pages
41 # auto-push: true
42 # github-token: ${{ secrets.GITHUB_TOKEN }}
43 # benchmark-data-dir-path: "docs/dev/bench"