forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3568 from danieljurek/djurek/cspell-baseline-trb
Port changes going into Azure repo
- Loading branch information
Showing
282 changed files
with
10,338 additions
and
5,836 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check Spelling - All | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
- typespec-next | ||
|
||
schedule: | ||
# Run every day at 12:06 UTC | ||
- cron: '6 12 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-spelling: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Run spelling check | ||
run: | | ||
./eng/common/spelling/Invoke-Cspell.ps1 ` | ||
-ScanGlobs 'specifications/**' ` | ||
-CSpellConfigPath './cspell.json' | ||
shell: pwsh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check Spelling | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- RPSaaSMaster | ||
- typespec-next | ||
|
||
jobs: | ||
check-spelling: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch the entire history of the repository. Attempting to check out | ||
# the merge commit and the base branch does not save any time. | ||
fetch-depth: 0 | ||
|
||
- name: Run spelling check | ||
run: | | ||
$targetCommittish = git rev-parse origin/${{ github.base_ref }} | ||
./eng/common/scripts/check-spelling-in-changed-files.ps1 ` | ||
-CSpellConfigPath 'cspell.json' ` | ||
-SourceCommittish '${{ github.sha }}' ` | ||
-TargetCommittish $targetCommittish ` | ||
-ExitWithError | ||
if ($LASTEXITCODE) { | ||
Write-Host "Spelling errors found in changed files. See https://aka.ms/ci-fix#spell-check" | ||
exit $LASTEXITCODE | ||
} | ||
shell: pwsh |
Oops, something went wrong.