Skip to content

Commit

Permalink
Run xk6 CI job on k6 fork for external PRs
Browse files Browse the repository at this point in the history
Closes #1891
  • Loading branch information
Ivan Mirić authored and imiric committed Mar 9, 2021
1 parent 89d4ee5 commit a2ba970
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/xk6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
echo "COMMIT_ID=$COMMIT_ID"
cd .github/workflows/xk6-tests
go get github.com/k6io/xk6/cmd/xk6@master
if [ "${{ github.event_name }}" == "pull_request" -a \
"${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
export XK6_K6_REPO="github.com/${{ github.event.pull_request.head.repo.full_name }}"
fi
GOPROXY="direct" xk6 build "$COMMIT_ID" \
--output ./k6ext \
--with github.com/k6io/xk6-js-test="$(pwd)/xk6-js-test" \
Expand Down

0 comments on commit a2ba970

Please sign in to comment.