forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.1 KB
/
spelling-all.yaml
File metadata and controls
52 lines (44 loc) · 1.1 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: SpellCheck - All
on:
push:
branches:
- main
- RPSaaSMaster
- RPSaaSCanary
pull_request:
branches:
- main
- RPSaaSMaster
- RPSaaSCanary
paths:
- "eng/common/spelling/**"
- "cspell.json"
schedule:
# Run every day at 12:06 UTC
- cron: "6 12 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
spellcheck:
name: SpellCheck
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
# workaround streetsidesoftware/cspell#8778
- name: Setup Node 22
uses: actions/setup-node@v6
with:
node-version: 22
- name: Run spelling check
run: |
$allFiles = Get-ChildItem -Path specification -Recurse -File
Write-Host "Found $($allFiles.Count) files to check"
./eng/common/spelling/Invoke-Cspell.ps1 `
-FileList $allFiles.FullName `
-CSpellConfigPath './cspell.json' `
-SpellCheckRoot (Resolve-Path specification)
shell: pwsh