Merge pull request #220 from zhong-yiyu/add-typos-github-action #3
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: Check Typos in Source Code | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
run: | |
name: Spell Check with Typos | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout actions repository | |
uses: actions/checkout@v4 | |
- name: Check spelling of src directory. | |
uses: crate-ci/typos@master | |
with: | |
files: './src/*' | |
- name: Check spelling of tests directory. | |
uses: crate-ci/typos@master | |
with: | |
files: './tests/*' | |
- name: Check spelling of tools directory. | |
uses: crate-ci/typos@master | |
with: | |
files: './tools/*' | |
- name: Check spelling of addons directory. | |
uses: crate-ci/typos@master | |
with: | |
files: './addons/*' | |
- name: Check spelling of examples directory. | |
uses: crate-ci/typos@master | |
with: | |
files: './examples/*' |