File tree 1 file changed +18
-21
lines changed
1 file changed +18
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Test
2
2
on : [push]
3
3
jobs :
4
- run :
5
- runs-on : ${{ matrix.operating-system }}
6
- strategy :
7
- matrix :
8
- operating-system : [ubuntu-latest, windows-latest, macos-latest]
9
- steps :
10
- - name : Checkout
11
- uses : actions/checkout@v2
4
+ run :
5
+ runs-on : ${{ matrix.operating-system }}
6
+ strategy :
7
+ matrix :
8
+ operating-system : [ubuntu-latest, windows-latest, macos-latest]
9
+ steps :
10
+ - name : Checkout
11
+ uses : actions/checkout@v2
12
12
13
- - name : Setup Go
14
- uses : actions/setup-go@v2
15
- with :
16
- go-version : " ~1.19 .0"
13
+ - name : Setup Go
14
+ uses : actions/setup-go@v2
15
+ with :
16
+ go-version : " ~1.20 .0"
17
17
18
- - name : Install benchstat
19
- run : go install golang.org/x/perf/cmd/benchstat@latest
18
+ - name : Install benchstat
19
+ run : go install golang.org/x/perf/cmd/benchstat@latest
20
20
21
- - name : Test
22
- run : go test ./...
21
+ - name : Test
22
+ run : go test ./...
23
23
24
- - name : Benchmark
25
- run : go test ./... -bench=.
26
-
27
- - name : Benchstat
28
- run : go test ./... -bench=. -count 5 > out.txt && benchstat out.txt
24
+ - name : Benchstat
25
+ run : go test ./... -bench=. > out.txt && benchstat out.txt
You can’t perform that action at this time.
0 commit comments