Skip to content

Commit ec615c0

Browse files
author
Youssef ahmed
committed
chore: change workflow
1 parent 2721bd1 commit ec615c0

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

.github/workflows/build-test.yml

+18-21
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
name: Build and Test
22
on: [push]
33
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
1212

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"
1717

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
2020

21-
- name: Test
22-
run: go test ./...
21+
- name: Test
22+
run: go test ./...
2323

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

0 commit comments

Comments
 (0)