Skip to content

Closes #58 fixed appendix #5

Closes #58 fixed appendix

Closes #58 fixed appendix #5

Workflow file for this run

name: Spellcheck Workflow
on:
workflow_dispatch:
pull_request: {branches: ['main']}
jobs:
build-deploy:
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
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
tidyverse
spelling
roxygen2
stringr
- 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'))"
- 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))"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}