Skip to content

attempting to fix test coverage reporting via actions #420

attempting to fix test coverage reporting via actions

attempting to fix test coverage reporting via actions #420

on:
push:
branches: [main, master]
name: render readme
jobs:
render:
# The type of runner that the job will run on
runs-on: macOS-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2-branch
- uses: r-lib/actions/setup-pandoc@v2-branch
# install packages needed
- name: install required packages
run: Rscript -e 'install.packages(c("rmarkdown"))'
# Render READEME.md using rmarkdown
- name: render README
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")'
- name: commit rendered README
run: |
git add README.md git commit -m "Re-build README.md" || echo "No changes to commit"
git push origin master || echo "No changes to commit"