Skip to content

Closes #58 fixed appendix #1

Closes #58 fixed appendix

Closes #58 fixed appendix #1

Workflow file for this run

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: Set up Quarto
uses: quarto-dev/quarto-actions/setup@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('spelling', '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}