trailing bracket R CMD Check docs issue #152
Workflow file for this run
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
name: Tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
# Run every Monday at midnight | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
jobs: | |
test: | |
name: ${{ matrix.os }} (R ${{ matrix.r-version }}) | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
r-version: 'release' | |
- os: macos-latest | |
r-version: 'release' | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 1 | |
- name: Install Tidy Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install -y tidy | |
- name: set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.r-version }} | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-tinytex@v2 | |
- name: set up dependencies | |
shell: bash | |
env: | |
OS_NAME: ${{ matrix.os }} | |
run: $GITHUB_WORKSPACE/.github/setup.sh | |
- name: run tests | |
shell: bash | |
run: $GITHUB_WORKSPACE/test.sh | |
- name: upload coverage | |
if: ${{ matrix.os == 'macos-latest' && matrix.r-version == 'release' }} | |
shell: Rscript {0} | |
run: covr::codecov() | |
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert | |
all-successful: | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Note that all tests succeeded | |
run: echo "🎉" |