From b963068e317ace936805bc3d1e071270baa1744a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= Date: Wed, 30 Sep 2020 16:08:41 +0200 Subject: [PATCH] Define Go versions globally, switch to current version for most jobs Resolves https://github.com/loadimpact/k6/pull/1640#discussion_r497329906 --- .github/workflows/all.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index 7d52cf327c92..8ae996dc429a 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -14,8 +14,10 @@ defaults: shell: bash env: - APP_NAME: "k6" + APP_NAME: k6 DOCKER_IMAGE_ID: ${{ github.repository }} + GO_VERSION_CURRENT: 1.15.x + GO_VERSION_PREVIOUS: 1.14.x jobs: deps: @@ -26,7 +28,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: ${{ env.GO_VERSION_CURRENT }} - name: Check dependencies run: | go version @@ -46,7 +48,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: ${{ env.GO_VERSION_CURRENT }} - name: Install golangci-lint working-directory: /tmp run: go get github.com/golangci/golangci-lint/cmd/golangci-lint@$GOLANGCI_VERSION @@ -59,7 +61,9 @@ jobs: test: strategy: matrix: - go-version: [1.14.x, 1.15.x] + go-version: + - ${{ env.GO_VERSION_PREVIOUS }} + - ${{ env.GO_VERSION_CURRENT }} platform: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.platform }} env: @@ -118,7 +122,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.14.x + go-version: ${{ env.GO_VERSION_CURRENT }} - name: Install package builders env: GO111MODULE: 'off'