Skip to content

Commit

Permalink
Update reusable-workflow-website.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msberends authored Oct 25, 2024
1 parent b0e7be1 commit 4c7cb34
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/reusable-workflow-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,36 @@ jobs:
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::build_favicons()'
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, clean = TRUE)'
Codecov:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
steps:
- uses: actions/checkout@v3

- name: Generate Dutch language files for examples
if: runner.os == 'Linux'
run: |
sudo locale-gen nl_NL
sudo locale-gen nl_NL.UTF-8
sudo update-locale
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
# use RStudio Package Manager to quickly install packages
use-public-rspm: true
# add our own R-universe to install other Certe packages
extra-repositories: 'https://certe-medical-epidemiology.r-universe.dev'

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
upgrade: 'TRUE'

- name: Test coverage
run: covr::codecov()
shell: Rscript {0}

0 comments on commit 4c7cb34

Please sign in to comment.