gosec/.github/workflows/main.yml
Cosmin Cojocar e030aa4f76 Remove the go 1.14 version from github action
It seems to fail when starting the action.

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2020-03-30 13:20:59 +02:00

60 lines
1.4 KiB
YAML

name: GoSec CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
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@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-go-1-14, tests-go-1-13, tests-go-1-12]
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Create Test Coverage
uses: cedrickring/golang-action@1.5.1
with:
args: make test-coverage
- name: Upload Test Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
fail_ci_if_error: true