simplify CI workflow
This commit is contained in:
parent
dd593b1035
commit
c5dc3ee3b6
1 changed files with 7 additions and 6 deletions
13
.github/workflows/development.yml
vendored
13
.github/workflows/development.yml
vendored
|
@ -5,9 +5,6 @@ on:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
|
||||||
GO_LATEST: 1.14
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-deploy:
|
test-deploy:
|
||||||
name: Test and deploy
|
name: Test and deploy
|
||||||
|
@ -15,10 +12,15 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.14]
|
go: [1.14]
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
upload-coverage: [true]
|
||||||
include:
|
include:
|
||||||
- go: 1.13
|
- go: 1.13
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
|
upload-coverage: false
|
||||||
|
- go: 1.14
|
||||||
|
os: windows-latest
|
||||||
|
upload-coverage: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -47,7 +49,7 @@ jobs:
|
||||||
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic
|
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: ${{ matrix.go == env.GO_LATEST && startsWith(matrix.os, 'windows-') != true }}
|
if: ${{ matrix.upload-coverage }}
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
file: ./coverage.txt
|
file: ./coverage.txt
|
||||||
|
@ -171,4 +173,3 @@ jobs:
|
||||||
uses: golangci/golangci-lint-action@v1
|
uses: golangci/golangci-lint-action@v1
|
||||||
with:
|
with:
|
||||||
version: v1.27
|
version: v1.27
|
||||||
args: --timeout=3m
|
|
||||||
|
|
Loading…
Reference in a new issue