-
Notifications
You must be signed in to change notification settings - Fork 12.9k
37 lines (32 loc) · 978 Bytes
/
spellcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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
# fixme: if word have more than 1 possible fix,
# this fix will not be applied but printed.
# Ignore for now
continue-on-error: true
# sync version with src/tools/tidy/src/ext_tool_checks.rs
uses: crate-ci/[email protected]
with:
# sync target files with src/tools/tidy/src/ext_tool_checks.rs
files: ./compiler ./library
config: ./typos.toml
write_changes: true
- name: save diff
run: git diff > "spellcheck_results.diff"
- uses: actions/upload-artifact@v4
with:
name: spellcheck-artifact
path: ./spellcheck_results.diff
retention-days: 1