From 3b935e5be10a52e836a4df89c0792a0e87ce5216 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Mon, 4 Oct 2021 10:32:11 +0300 Subject: [PATCH 1/2] Fix go get xk6 github action + go get is only used for adding dependencies to a Go module + this fix uses go install to install the xk6 binary (instead of go get) --- .github/workflows/xk6.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xk6.yml b/.github/workflows/xk6.yml index c9c66a931e8..171c692dfee 100644 --- a/.github/workflows/xk6.yml +++ b/.github/workflows/xk6.yml @@ -50,7 +50,7 @@ jobs: cd .github/workflows/xk6-tests # Temporary hack to ignore the v0.33.0 tag change export GONOSUMDB="go.k6.io/k6" - go get go.k6.io/xk6/cmd/xk6@master + go install go.k6.io/xk6/cmd/xk6@latest 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 }}" From 388a08b8f22761b0ccc46f0a58d0ff320b124e44 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Mon, 4 Oct 2021 11:07:41 +0300 Subject: [PATCH 2/2] Update keep xk6@master instead of xk6@latest So we can test even with unreleased versions of xk6. --- .github/workflows/xk6.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/xk6.yml b/.github/workflows/xk6.yml index 171c692dfee..6d0359e064e 100644 --- a/.github/workflows/xk6.yml +++ b/.github/workflows/xk6.yml @@ -50,7 +50,7 @@ jobs: cd .github/workflows/xk6-tests # Temporary hack to ignore the v0.33.0 tag change export GONOSUMDB="go.k6.io/k6" - go install go.k6.io/xk6/cmd/xk6@latest + go install go.k6.io/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 }}"