Closes #58 fixed appendix #3
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: Spellcheck Workflow | |
on: | |
workflow_dispatch: | |
pull_request: {branches: ['main']} | |
jobs: | |
spellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install dependencies | |
run: | | |
R -e "install.packages(c('jsonlite', 'tidyverse', 'spelling', 'janitor', 'diffdf', 'admiral', 'patchwork', 'here', 'reactable', 'pharmaversesdtm', 'metacore', 'metatools', 'xportr', 'pharmaverseadam', 'link', 'sessioninfo', 'roxygen2'))" | |
shell: Rscript {0} | |
- name: Install additional packages | |
run: | | |
R -e "install.packages(c('testthat', 'stringr'))" | |
shell: Rscript {0} | |
- name: Run Spelling Check test | |
run: | | |
R -e "spelling::spell_check_files(list.files(pattern = '.*.qmd$', recursive = TRUE), ignore = readr::read_lines('inst/WORDLIST.txt'))" | |
shell: Rscript {0} | |
- name: Run Typo Test | |
run: | | |
R -e "testthat::test_that(desc = 'No Typo', code = testthat::expect_equal(object = spelling::spell_check_files(list.files(pattern = '.*.qmd$', recursive = TRUE), ignore = readr::read_lines('inst/WORDLIST.txt')), expected = NULL))" | |
shell: Rscript {0} |