506 fix gitstats storage #7
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: 📝 Spelling Check | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [devel, test, master] | |
jobs: | |
spell-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libcurl4-openssl-dev | |
sudo apt-get install -y libharfbuzz-dev libfribidi-dev | |
- name: Install R packages | |
run: | | |
install.packages('devtools') | |
devtools::install_github('ropensci/spelling') | |
shell: Rscript {0} | |
- name: Run spelling check | |
run: | | |
Rscript -e " | |
library(spelling); | |
spelling_errors <- spell_check_package(); | |
if (length(spelling_errors) > 0) { | |
print(spelling_errors); | |
quit(status = 1) | |
} else { | |
cat('No spelling errors found.\n') | |
} | |
" |