diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index af9ed547..0b835423 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,11 +6,17 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: codecov/codecov-action@v4 + - name: Checkout + uses: actions/checkout@v2 with: - fail_ci_if_error: true # optional (default = false) - flags: unittests # optional - name: codecov-umbrella # optional - token: ${{ secrets.CODECOV_TOKEN }} # required - verbose: true # optional (default = false) + fetch-depth: 2 + - name: Install dependencies + run: yarn install + - name: Run tests + run: yarn run test --coverage # generates coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + verbose: true