Add to GitHub workflow some jobs for go1.13 and go1.12

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar 2020-03-30 13:15:21 +02:00
parent a111777041
commit cabccc75ef

View file

@ -7,7 +7,7 @@ on:
branches: branches:
- master - master
jobs: jobs:
tests: tests-go-1-14:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GO111MODULE: on GO111MODULE: on
@ -15,11 +15,33 @@ jobs:
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Run Tests - 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: with:
args: make test args: make test
coverage: coverage:
needs: tests needs: [tests-go-1-14, test-go-1-13, test-go-1-12]
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
GO111MODULE: on GO111MODULE: on