-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update reusable-workflow-website.yml
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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} |