Skip to content

Commit 7554b4c

Browse files
committed
Add diff/bench workflow
1 parent b734641 commit 7554b4c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/diff.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: diff
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
bench:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Setup Go 1.19
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.19
15+
- uses: actions/checkout@v2
16+
- name: Install benchstat
17+
run: go install golang.org/x/perf/cmd/benchstat@latest
18+
- name: Diff
19+
run: benchstat new.txt
20+
- name: Benchmark
21+
run: go test -bench=. -benchmem -run=^$ -count=20 -timeout=30m | tee new.txt

0 commit comments

Comments
 (0)