mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
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:
parent
1fce46151c
commit
9c047e32a3
2 changed files with 17 additions and 17 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue