Add copy to clipboard (#74) and markdown formatting (#78) features to makeOxygen()
#102
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
on: [push, pull_request] | |
name: R-mac | |
jobs: | |
check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
if: "!contains(github.event.head_commit.message, 'skip osx')" | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { os: macOS-latest, r: '4.1.0', args: "--no-manual"} | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
CRAN: ${{ matrix.config.cran }} | |
GITHUB_PAT: ${{secrets.GH_PAT}} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::covr | |
needs: coverage | |
- name: Test coverage | |
run: covr::codecov(quiet = FALSE) | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: covrpage | |
if: github.ref == 'refs/heads/master' | |
run: | | |
Rscript -e 'install.packages("remotes")' \ | |
-e 'remotes::install_github("yonicd/covrpage@actions")' \ | |
-e 'covrpage::covrpage_ci()' | |
git commit tests/README.md -m 'Update tests/README.Rmd' || echo "No changes to commit" | |
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:${{ github.ref }} || echo "No changes to commit" | |
- name: Deploy package | |
if: github.ref == 'refs/heads/master' | |
run: | | |
Rscript -e 'remotes::install_github("yonicd/pkgdown")' \ | |
-e "pkgdown:::deploy_local(new_process = FALSE, remote_url = 'https://x-access-token:${{secrets.GITHUB_PAT}}@github.com/${{github.repository}}.git')" | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true |