From 9c047e32a30aaa00f55b26753b65303bd0b631cc Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Fri, 26 Feb 2021 11:12:38 +0100 Subject: [PATCH] Add support for Go 1.16 in the CI and release workflows (#581) Signed-off-by: Cosmin Cojocar --- .github/workflows/ci.yml | 30 +++++++++++++++--------------- .github/workflows/release.yml | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12039ed..731b6bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6b1f3e..26310d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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