| 1 |
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/spell-check-task.md |
| 2 |
name: Spell Check |
| 3 |
|
| 4 |
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows |
| 5 |
on: |
| 6 |
push: |
| 7 |
pull_request: |
| 8 |
schedule: |
| 9 |
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates. |
| 10 |
- cron: "0 8 * * TUE" |
| 11 |
workflow_dispatch: |
| 12 |
repository_dispatch: |
| 13 |
|
| 14 |
jobs: |
| 15 |
spellcheck: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
|
| 18 |
steps: |
| 19 |
- name: Checkout repository |
| 20 |
uses: actions/checkout@v7 |
| 21 |
|
| 22 |
- name: Install Python |
| 23 |
uses: actions/setup-python@v7 |
| 24 |
with: |
| 25 |
python-version: "3.9" |
| 26 |
|
| 27 |
- name: Install Poetry |
| 28 |
run: pip install poetry |
| 29 |
|
| 30 |
- name: Install Task |
| 31 |
uses: arduino/setup-task@v3 |
| 32 |
with: |
| 33 |
repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 34 |
version: 3.x |
| 35 |
|
| 36 |
- name: Spell check |
| 37 |
run: | |
| 38 |
go tool \ |
| 39 |
github.com/go-task/task/v3/cmd/task general:check-spelling |