From bb657668784a1d27eeebdadebfc2a4aa6b6ae9d9 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 11 Feb 2021 14:29:42 -0800 Subject: [PATCH] actions: only update test coverage on recent go version --- .github/workflows/tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec9f1c6..d4648ad 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,6 +18,11 @@ jobs: # least lets us know what go version should work. - go-version: 1.11 platform: ubuntu-latest + + # only update test coverage stats with most recent go version on linux + - go-version: 1.x + platform: ubuntu-latest + update-coverage: true runs-on: ${{ matrix.platform }} steps: @@ -37,5 +42,6 @@ jobs: run: go test -v -race -coverprofile coverage.txt -covermode atomic ./... - name: Upload coverage to Codecov + if: ${{ matrix.update-coverage }} uses: codecov/codecov-action@v1 timeout-minutes: 2