mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-30 22:34:18 -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.
|
# least lets us know what go version should work.
|
||||||
- go-version: 1.11
|
- go-version: 1.11
|
||||||
platform: ubuntu-latest
|
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 }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -37,5 +42,6 @@ jobs:
|
||||||
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
|
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
|
if: ${{ matrix.update-coverage }}
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
|
|
Loading…
Reference in a new issue