From 0e577cc83c7b4abd5094ac5b728cb2c42c11ccf7 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Fri, 13 Dec 2024 18:22:58 +0200 Subject: [PATCH] set browser executable and headless in ci --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ecfa479ca693..f84d93adb8bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: args[1]="1" export GOMAXPROCS=1 fi - go test "${args[@]}" -timeout 800s ./... + K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s ./... test-tip: strategy: @@ -80,7 +80,7 @@ jobs: args[1]="1" export GOMAXPROCS=1 fi - go test "${args[@]}" -timeout 800s ./... + K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s ./... test-current-cov: strategy: @@ -115,7 +115,7 @@ jobs: list=$(echo "$list" | cut -f1 -d ' ' | sort -u | paste -sd, -) fi - go test "${args[@]}" -timeout 800s --coverpkg="$list" -coverprofile=$(echo $pkg | tr / -).coverage $pkg + K6_BROWSER_EXECUTABLE_PATH=/usr/bin/google-chrome K6_BROWSER_HEADLESS=true go test "${args[@]}" -timeout 800s --coverpkg="$list" -coverprofile=$(echo $pkg | tr / -).coverage $pkg done grep -h -v "^mode:" *.coverage >> coverage.txt rm -f *.coverage