Skip to content

Commit

Permalink
Add support for Go 1.16 in the CI and release workflows (#581)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
  • Loading branch information
ccojocar authored Feb 26, 2021
1 parent 1fce461 commit 9c047e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ on:
branches:
- master
jobs:
tests-go-1-15:
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.6.0
uses: cedrickring/golang-action@1.7.0
with:
args: make test
tests-go-1-14:
tests-go-1-15:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Tests
uses: cedrickring/golang-action/go1.14@1.6.0
uses: cedrickring/golang-action/go1.15@1.7.0
with:
args: make test
tests-go-1-13:
tests-go-1-14:
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
steps:
- 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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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

0 comments on commit 9c047e3

Please sign in to comment.