Add support for Go 1.16 in the CI and release workflows (#581)

Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
Cosmin Cojocar 2021-02-26 11:12:38 +01:00 committed by GitHub
parent 1fce46151c
commit 9c047e32a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 17 deletions

View file

@ -7,6 +7,17 @@ on:
branches:
- master
jobs:
tests-go-1-16:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Tests
uses: cedrickring/golang-action@1.7.0
with:
args: make test
tests-go-1-15:
runs-on: ubuntu-latest
env:
@ -15,7 +26,7 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Tests
uses: cedrickring/golang-action@1.6.0
uses: cedrickring/golang-action/go1.15@1.7.0
with:
args: make test
tests-go-1-14:
@ -26,22 +37,11 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Tests
uses: cedrickring/golang-action/go1.14@1.6.0
with:
args: make test
tests-go-1-13:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Tests
uses: cedrickring/golang-action/go1.13@1.6.0
uses: cedrickring/golang-action/go1.14@1.7.0
with:
args: make test
coverage:
needs: [tests-go-1-15, tests-go-1-14, tests-go-1-13]
needs: [tests-go-1-16, tests-go-1-15, tests-go-1-14]
runs-on: ubuntu-latest
env:
GO111MODULE: on
@ -49,7 +49,7 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v2
- name: Create Test Coverage
uses: cedrickring/golang-action@1.6.0
uses: cedrickring/golang-action@1.7.0
with:
args: make test-coverage
- name: Upload Test Coverage

View file

@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name : Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
@ -34,6 +34,6 @@ jobs:
name: securego/gosec
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
buildargs: GO_VERSION=1.15
buildargs: GO_VERSION=1.16
tags: "latest,${{ env.RELEASE_VERSION }}"
tag_names: true