0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

actions: only update test coverage on recent go version

This commit is contained in:
Will Norris 2021-02-11 14:29:42 -08:00
parent f41a60b471
commit bb65766878

View file

@ -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