From cabccc75ef283de5f27dc6a3c0548c82f70eba9c Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 30 Mar 2020 13:15:21 +0200 Subject: [PATCH] Add to GitHub workflow some jobs for go1.13 and go1.12 Signed-off-by: Cosmin Cojocar --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 556dc73..d8cfd82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ on: branches: - master jobs: - tests: + tests-go-1-14: runs-on: ubuntu-latest env: GO111MODULE: on @@ -15,11 +15,33 @@ jobs: - name: Checkout Source uses: actions/checkout@v2 - name: Run Tests - uses: cedrickring/golang-action@1.5.1 + uses: cedrickring/golang-action/go1.14@1.5.1 + 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.5.1 + with: + args: make test + tests-go-1-12: + runs-on: ubuntu-latest + env: + GO111MODULE: on + steps: + - name: Checkout Source + uses: actions/checkout@v2 + - name: Run Tests + uses: cedrickring/golang-action/go1.12@1.5.1 with: args: make test coverage: - needs: tests + needs: [tests-go-1-14, test-go-1-13, test-go-1-12] runs-on: ubuntu-latest env: GO111MODULE: on