From af4f1b208e9caba47e75127867fd20f22a080b28 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 11 Oct 2021 14:19:21 +0530 Subject: [PATCH] upgrade rust and codecov action --- .github/workflows/coverage.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 70accc1..2da6ab1 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 }}