-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1020 Bytes
/
cb.yaml
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
name: CB
on: [push]
permissions:
contents: write
deployments: write
jobs:
benchmarks:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.18' ]
steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run benchmark
run: make benchmark | tee output.txt
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-always: true
comment-on-alert: true
alert-comment-cc-users: '@fr33r'