Skip to content

Commit

Permalink
Define Go versions globally, switch to current version for most jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Sep 30, 2020
1 parent b792ac6 commit b963068
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit b963068

Please sign in to comment.