Skip to content

Commit d22d1f3

Browse files
committed
ci/test.sh: Always benchmark
1 parent 308a8e2 commit d22d1f3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ jobs:
3636
with:
3737
name: coverage.html
3838
path: ./ci/out/coverage.html
39+
40+
bench:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: actions/setup-go@v4
45+
with:
46+
go-version-file: ./go.mod
47+
- run: ./ci/bench.sh

.github/workflows/daily.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/setup-go@v4
2424
with:
2525
go-version-file: ./go.mod
26-
- run: AUTOBAHN=1 ./ci/test.sh -bench=.
26+
- run: AUTOBAHN=1 ./ci/test.sh
2727
- uses: actions/upload-artifact@v3
2828
with:
2929
name: coverage.html
@@ -47,7 +47,7 @@ jobs:
4747
- uses: actions/setup-go@v4
4848
with:
4949
go-version-file: ./go.mod
50-
- run: AUTOBAHN=1 ./ci/test.sh -bench=.
50+
- run: AUTOBAHN=1 ./ci/test.sh
5151
- uses: actions/upload-artifact@v3
5252
with:
5353
name: coverage.html

ci/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eu
33
cd -- "$(dirname "$0")/.."
44

55
go install github.com/agnivade/wasmbrowsertest@latest
6-
go test --race --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./...
6+
go test --race --bench=. --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./...
77
sed -i.bak '/stringer\.go/d' ci/out/coverage.prof
88
sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
99
sed -i.bak '/examples/d' ci/out/coverage.prof

0 commit comments

Comments
 (0)