upgrade rust and codecov action

This commit is contained in:
Aravinth Manivannan 2021-10-11 14:19:21 +05:30
parent 5f3c21a9a9
commit af4f1b208e
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -13,8 +13,8 @@ jobs:
fail-fast: false
matrix:
version:
# - stable
- 1.51.0
- stable
#- 1.51.0
name: ${{ matrix.version }} - x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
@ -61,7 +61,8 @@ jobs:
DATABASE_URL: postgres://postgres:password@localhost:5432/postgres
- 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
with:
version: '0.15.0'
@ -75,5 +76,8 @@ jobs:
COMPILED_DATE: "2021-07-21"
- name: Upload to Codecov
if: matrix.version == '1.51.0' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request')
uses: codecov/codecov-action@v1
#if: matrix.version == '1.51.0' && github.ref == 'refs/heads/master'
if: matrix.version == 'stable' && github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}