-
-
Notifications
You must be signed in to change notification settings - Fork 34
53 lines (44 loc) · 1.23 KB
/
benchmark.yml
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
44
45
46
47
48
49
50
51
52
53
name: benchmark
on:
pull_request:
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Set up deps
run: make depsdev
- name: Check out source code (main)
uses: actions/checkout@v4
with:
ref: main
path: main
- name: Run benchmark (main)
continue-on-error: true
run: make benchmark
working-directory: main
- name: Run octocov (main)
continue-on-error: true
uses: k1LoW/octocov-action@v1
with:
config: .octocov.benchmark.main.yml
env:
OCTOCOV_GITHUB_REF: refs/heads/main
OCTOCOV_GITHUB_SHA: none
OCTOCOV_CUSTOM_METRICS_BENCHMARK: main/custom_metrics_benchmark.json
- name: Run benchmark
run: make benchmark
- name: Run octocov
uses: k1LoW/octocov-action@v1
with:
config: .octocov.benchmark.yml
env:
OCTOCOV_CUSTOM_METRICS_BENCHMARK: custom_metrics_benchmark.json