Skip to content

Commit

Permalink
Fix TMPDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jun 21, 2023
1 parent 79bc175 commit f69ed5a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
go version
export GOMAXPROCS=1
export K6_BROWSER_HEADLESS=true
echo $TMPDIR
tmpdir="${TMPDIR:-/tmp}"
export TMPDIR=$tmpdir
go test -p 1 -timeout 5m ./...
test-tip:
Expand Down Expand Up @@ -69,7 +70,8 @@ jobs:
go version
export GOMAXPROCS=1
export K6_BROWSER_HEADLESS=true
echo $TMPDIR
tmpdir="${TMPDIR:-/tmp}"
export TMPDIR=$tmpdir
go test -p 1 -timeout 5m ./...
test-current-cov:
Expand All @@ -92,14 +94,15 @@ jobs:
go version
export GOMAXPROCS=1
export K6_BROWSER_HEADLESS=true
tmpdir="${TMPDIR:-/tmp}"
export TMPDIR=$tmpdir
echo "mode: set" > coverage.txt
for pkg in $(go list ./... | grep -v vendor); do
list=$(go list -test -f '{{ join .Deps "\n"}}' $pkg | grep github.com/grafana/xk6-browser | grep -v vendor || true)
if [ -n "$list" ]; then
list=$(echo "$list" | cut -f1 -d ' ' | sort -u | paste -sd, -)
fi
echo $TMPDIR
go test -p 1 -timeout 5m --coverpkg="$list" -coverprofile=$(echo $pkg | tr / -).coverage $pkg
done
grep -h -v "^mode:" *.coverage >> coverage.txt
Expand Down Expand Up @@ -138,5 +141,6 @@ jobs:
go mod tidy
cat go.mod | grep go.k6.io/k6
export K6_BROWSER_HEADLESS=true
echo $TMPDIR
tmpdir="${TMPDIR:-/tmp}"
export TMPDIR=$tmpdir
go test -p 1 -timeout 5m ./...

0 comments on commit f69ed5a

Please sign in to comment.