good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit d22d1f39 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

ci/test.sh: Always benchmark

parent 308a8e26
No related branches found
No related tags found
No related merge requests found
...@@ -36,3 +36,12 @@ jobs: ...@@ -36,3 +36,12 @@ jobs:
with: with:
name: coverage.html name: coverage.html
path: ./ci/out/coverage.html path: ./ci/out/coverage.html
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- run: ./ci/bench.sh
...@@ -23,7 +23,7 @@ jobs: ...@@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version-file: ./go.mod go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/test.sh -bench=. - run: AUTOBAHN=1 ./ci/test.sh
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: coverage.html name: coverage.html
...@@ -47,7 +47,7 @@ jobs: ...@@ -47,7 +47,7 @@ jobs:
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version-file: ./go.mod go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/test.sh -bench=. - run: AUTOBAHN=1 ./ci/test.sh
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:
name: coverage.html name: coverage.html
......
...@@ -3,7 +3,7 @@ set -eu ...@@ -3,7 +3,7 @@ set -eu
cd -- "$(dirname "$0")/.." cd -- "$(dirname "$0")/.."
go install github.com/agnivade/wasmbrowsertest@latest go install github.com/agnivade/wasmbrowsertest@latest
go test --race --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./... go test --race --bench=. --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./...
sed -i.bak '/stringer\.go/d' ci/out/coverage.prof sed -i.bak '/stringer\.go/d' ci/out/coverage.prof
sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof
sed -i.bak '/examples/d' ci/out/coverage.prof sed -i.bak '/examples/d' ci/out/coverage.prof
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment