Skip to content

Commit

Permalink
ci/bench.sh: Add
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Oct 13, 2023
1 parent a6b9464 commit 4e15d75
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ concurrency:
cancel-in-progress: true

jobs:
ci:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- run: AUTOBAHN=1 ./ci/bench.sh
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 9 additions & 0 deletions ci/bench.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
set -eu
cd -- "$(dirname "$0")/.."

go test --bench=. "$@" ./...
(
cd ./internal/thirdparty
go test --bench=. "$@" ./...
)
1 change: 1 addition & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ cd -- "$(dirname "$0")"
./ci/fmt.sh
./ci/lint.sh
./ci/test.sh
./ci/bench.sh

0 comments on commit 4e15d75

Please sign in to comment.