name: Spelling
on:
pull_request:
paths:
- "**.rs"
- "**.md"
- "**.txt"
- "**.toml"
- "**.yml"
- "**.yaml"
- ".typos.toml"
- "_typos.toml"
push:
branches:
- main
- dev
paths:
- "**.rs"
- "**.md"
- "**.txt"
- "**.toml"
- "**.yml"
- "**.yaml"
- ".typos.toml"
- "_typos.toml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
spelling:
name: Spell Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Check spelling with typos
uses: crate-ci/typos@v1.44.0
with:
config: .github/typos.toml