upgrade rust and codecov action
This commit is contained in:
parent
5f3c21a9a9
commit
af4f1b208e
1 changed files with 9 additions and 5 deletions
14
.github/workflows/coverage.yml
vendored
14
.github/workflows/coverage.yml
vendored
|
@ -13,8 +13,8 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
version:
|
version:
|
||||||
# - stable
|
- stable
|
||||||
- 1.51.0
|
#- 1.51.0
|
||||||
|
|
||||||
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
|
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -61,7 +61,8 @@ jobs:
|
||||||
DATABASE_URL: postgres://postgres:password@localhost:5432/postgres
|
DATABASE_URL: postgres://postgres:password@localhost:5432/postgres
|
||||||
|
|
||||||
- name: Generate coverage file
|
- name: Generate coverage file
|
||||||
if: matrix.version == '1.51.0' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
|
#if: matrix.version == '1.51.0' && github.ref == 'refs/heads/master'
|
||||||
|
if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
uses: actions-rs/tarpaulin@v0.1
|
||||||
with:
|
with:
|
||||||
version: '0.15.0'
|
version: '0.15.0'
|
||||||
|
@ -75,5 +76,8 @@ jobs:
|
||||||
COMPILED_DATE: "2021-07-21"
|
COMPILED_DATE: "2021-07-21"
|
||||||
|
|
||||||
- name: Upload to Codecov
|
- name: Upload to Codecov
|
||||||
if: matrix.version == '1.51.0' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
|
#if: matrix.version == '1.51.0' && github.ref == 'refs/heads/master'
|
||||||
uses: codecov/codecov-action@v1
|
if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
|
||||||
|
uses: codecov/codecov-action@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue