diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 2c97675..2c71b41 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -3,22 +3,23 @@ on: push: branches: [main, master] - pull_request: - branches: [main, master] + # tags: ['*'] workflow_dispatch: -name: test-coverage +name: testcoverage jobs: - test-coverage: + testcoverage: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN}} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - uses: actions/checkout@v2 + - uses: r-lib/actions/setup-pandoc@v1 + - uses: r-lib/actions/setup-r@v1 with: use-public-rspm: true @@ -27,6 +28,6 @@ jobs: with: extra-packages: covr - - name: Test coverage - run: covr::codecov() - shell: Rscript {0} + - name: Test Coverage + run: | + Rscript -e 'covr::codecov()'