Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d4fcdeb

Browse files
committed
Add XK6_HEADLESS to the CI test workflow
This is in preparation for ensuring that the TestFrameNoPanicWithEmbeddedIFrame isn't ran in CI, but it will run where that env var isn't set, allowing us to ensure we don't break the fix. Resolves: #677 (comment)
1 parent ce8bdf5 commit d4fcdeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
args[1]="1"
4444
export GOMAXPROCS=1
4545
fi
46+
export XK6_HEADLESS=true
4647
go test "${args[@]}" -timeout 5m ./...
4748
4849
test-tip:
@@ -71,6 +72,7 @@ jobs:
7172
go version
7273
export GOMAXPROCS=2
7374
args=("-p" "2" "-race")
75+
export XK6_HEADLESS=true
7476
go test "${args[@]}" -timeout 5m ./...
7577
7678
test-current-cov:
@@ -99,6 +101,7 @@ jobs:
99101
args[1]="1"
100102
export GOMAXPROCS=1
101103
fi
104+
export XK6_HEADLESS=true
102105
echo "mode: set" > coverage.txt
103106
for pkg in $(go list ./... | grep -v vendor); do
104107
list=$(go list -test -f '{{ join .Deps "\n"}}' $pkg | grep github.com/grafana/xk6-browser | grep -v vendor || true)

0 commit comments

Comments
 (0)