mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Change the GitHub workflow to use only the latest Go version
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
722acb64cb
commit
a111777041
1 changed files with 6 additions and 13 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
@ -8,35 +8,28 @@ on:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
go-version: [go1.12.x, go1.13.x, go1.14.x]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@v1
|
|
||||||
with:
|
|
||||||
go-version: ${{ matrix.go-version }}
|
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: make test
|
uses: cedrickring/golang-action@1.5.1
|
||||||
|
with:
|
||||||
|
args: make test
|
||||||
coverage:
|
coverage:
|
||||||
needs: tests
|
needs: tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@v1
|
|
||||||
with:
|
|
||||||
go-version: go1.14.x
|
|
||||||
- name: Checkout Source
|
- name: Checkout Source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create Test Coverage
|
- name: Create Test Coverage
|
||||||
run: make test-coverage
|
uses: cedrickring/golang-action@1.5.1
|
||||||
|
with:
|
||||||
|
args: make test-coverage
|
||||||
- name: Upload Test Coverage
|
- name: Upload Test Coverage
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue