Skip to content

Commit

Permalink
Add required env vars for browser tests for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Dec 13, 2024
1 parent 745f0d4 commit 8fa674d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8fa674d

Please sign in to comment.