From c5dc3ee3b630e3fdb3144c6afe29996e5f9c83bc Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Mon, 29 Jun 2020 20:07:51 +0200 Subject: [PATCH] simplify CI workflow --- .github/workflows/development.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 18195842..d2b47a33 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -5,9 +5,6 @@ on: branches: [master] pull_request: -env: - GO_LATEST: 1.14 - jobs: test-deploy: name: Test and deploy @@ -15,10 +12,15 @@ jobs: strategy: matrix: go: [1.14] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-latest] + upload-coverage: [true] include: - go: 1.13 os: ubuntu-latest + upload-coverage: false + - go: 1.14 + os: windows-latest + upload-coverage: false steps: - uses: actions/checkout@v2 @@ -47,7 +49,7 @@ jobs: run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic - 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 with: file: ./coverage.txt @@ -171,4 +173,3 @@ jobs: uses: golangci/golangci-lint-action@v1 with: version: v1.27 - args: --timeout=3m