summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorTom Proctor <tomhjp@users.noreply.github.com>2026-04-07 12:34:16 +0100
committerTom Proctor <tomhjp@users.noreply.github.com>2026-04-07 12:42:37 +0100
commit21072234dc7b3a7296e747c65eddbdbcb4e62321 (patch)
treecf05e053aaf84b7db0191e6bb1f31b321c8b45dd /.github/workflows/test.yml
parent6e44c6828b501724b72a1bb31e51677b9e9f740b (diff)
downloadtailscale-tomhjp/test-git-bash-tool-go.tar.xz
tailscale-tomhjp/test-git-bash-tool-go.zip
Change-Id: I7656ae83492d82628a98b1d43908ea6a53b62a24 Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml13
1 files changed, 3 insertions, 10 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index f73e8178d..cb283a8b8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -23,9 +23,6 @@ env:
on:
push:
- branches:
- - "main"
- - "release-branch/*"
pull_request:
# all PRs on all branches
merge_group:
@@ -263,6 +260,7 @@ jobs:
- name: test
if: matrix.key != 'win-bench' # skip on bench builder
working-directory: src
+ shell: bash
run: ./tool/go run ./cmd/testwrapper sharded:${{ matrix.shard }}
env:
NOPWSHDEBUG: "true" # to quiet tool/gocross/gocross-wrapper.ps1 in CI
@@ -270,13 +268,8 @@ jobs:
- name: bench all
if: matrix.key == 'win-bench'
working-directory: src
- # Don't use -bench=. -benchtime=1x.
- # Somewhere in the layers (powershell?)
- # the equals signs cause great confusion.
- # Don't use -run "^$" either; the ^ is cmd.exe's escape
- # character, so go.cmd's cmd.exe layer eats it, turning
- # -run "^$" into -run "$" which matches all test names.
- run: ./tool/go test ./... -bench . -benchtime 1x -run XXXXNothingXXXX
+ shell: bash
+ run: ./tool/go test ./... -bench=. -benchtime=1x -run="^^$"
env:
NOPWSHDEBUG: "true" # to quiet tool/gocross/gocross-wrapper.ps1 in CI