Spelling Workflow
This GitHub Actions workflow performs spellchecking on the specified
R files. The workflow is triggered manually
(workflow_dispatch
) and can also be invoked as a workflow
call (workflow_call
).
Workflow Structure
The workflow consists of a single job: spellcheck
.
spellcheck
Job
This job runs spellcheck on R files.
Inputs
-
r-version
: The version of R to use. Default is ‘release’. -
exclude
: List of paths to exclude (comma-separated list). Default is an empty string.
Steps
- Get branch names: Extracts branch names.
- Checkout repo (PR): Checks out the repository based on the event type (pull request).
- Checkout repository: Checks out the repository for events other than pull requests.
- Restore cache: Restores cached dependencies.
- Run Staged dependencies: Runs staged dependencies action.
- Install dependencies from DESCRIPTION: install dependencies from DESCRIPTION (in case of missing dependencies in parent admiralci docker image)
- Run Spellcheck: Executes the spellcheck action on specified R files.
Triggers
-
workflow_dispatch
: Manually triggered workflow with optional inputs. -
workflow_call
: Invoked as a workflow call.
Permissions
-
contents: write
: Write permissions for repository contents.
Note : It’s possible to ignore some spell checks using
inst/WORDLIST
file. It’s possible to update it
automatically using directly
spelling::update_wordlist()