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:
parent
f41a60b471
commit
bb65766878
1 changed files with 6 additions and 0 deletions
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue