summary refs log tree commit diff
path: root/.github/workflows/spellcheck.yml
blob: 7e21bb1b7ffbfcf2145f3a6345573e22df589097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This workflow runs spellcheck job

name: Spellcheck
on:
  pull_request:
    branches:
      - "**"

jobs:
  spellcheck:
    name: run spellchecker
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the source code
        uses: actions/checkout@v4

      - name: check typos
        # sync version with src/tools/tidy/src/ext_tool_checks.rs in spellcheck_runner
        uses: crate-ci/typos@v1.34.0
        with:
          # sync target files with src/tools/tidy/src/ext_tool_checks.rs in check_impl
          files: ./compiler ./library ./src/bootstrap ./src/librustdoc
          config: ./typos.toml