-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework cspell to correctly cover the entire repository (#1514)
Rework `cspell` triggers to accurately trigger based on files being changed. Problem: In our current cspell workflow setup, any changes to files outside of `cli` and `ext/vscode` might potentially break our "cspell for templates" job, but not be validated as part of PR builds. Solution: 1. Promote `./templates` as a project with it's own cspell job 2. Add a `cspell-misc` workflow that triggers for any file changes outside of cspell projects (which are covered by their own triggers), and does spell check on all miscellaneous files.
- Loading branch information
1 parent
0ba86fb
commit dd55204
Showing
8 changed files
with
58 additions
and
20 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
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,24 @@ | ||
name: misc | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
paths-ignore: | ||
# Changes here should be kept in-sync with projects listed in cspell.misc.yaml | ||
- 'eng/**' # Not required | ||
# Standalone projects that have their own cspell | ||
- 'cli/**' | ||
- 'ext/**' | ||
- 'templates/**' | ||
|
||
jobs: | ||
cspell-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
- run: npm install -g cspell | ||
- name: Spell check for general files | ||
run: cspell lint '**/*' --config ./.vscode/cspell.misc.yaml --relative --no-progress |
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
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
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
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
File renamed without changes.
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,22 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
# cspell settings for azd templates | ||
|
||
ignorePaths: | ||
- "*.bicep" # no need to lint resource files | ||
- mvnw # Maven wrapper asset used in Java templates -- external library code | ||
- mvnw.cmd # Maven wrapper asset used in Java templates -- external library code | ||
- ./common/NOTICE.txt | ||
|
||
# Use global config | ||
import: ../.vscode/cspell.global.yaml | ||
|
||
dictionaryDefinitions: | ||
- name: templatesDictionary | ||
path: ./cspell-templates.txt | ||
description: Custom Dictionary for templates | ||
addWords: true | ||
scope: workspace | ||
dictionaries: | ||
- templatesDictionary |