-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce github workflows for cspell and textlint #2971
Merged
svrnm
merged 26 commits into
open-telemetry:main
from
svrnm:add-cspell-and-textlint-to-workflows
Jul 6, 2023
Merged
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
03de736
Introduce github workflows for cspell and textlint
svrnm 158c52b
fix package.json
svrnm d48c5ff
try out npm package cache
svrnm cc903f7
update gitignore and checkin package-lock.json
svrnm 7f7d2b2
update cspell.json
svrnm 0b2f8be
another try
svrnm a53090a
remove npm install from prettier workflow
svrnm 6073846
try out package.json manipulation
svrnm b2c3246
fix
svrnm e9b03bf
fix #2
svrnm 2f134c4
fix 3
svrnm 96245c4
add cache to link checker
svrnm 8d6c110
Use 'streetsidesoftware/cspell-action'
svrnm 6a93adc
Reset .gitignore
svrnm ddaa723
Reset workflows
svrnm f73e383
Reset workflows
svrnm 14fba35
Reset textlint names
svrnm fa50ecb
Delete package-lock.json
svrnm d87c63e
fiiixes
svrnm f270ea4
fiiixes
svrnm 05617ac
Apply suggestions from code review
svrnm 8e9b552
Apply suggestions from code review
svrnm b0539a1
update textlint npm install
svrnm d9cacdc
update textlint npm install
svrnm 201930e
update textlint npm install
svrnm dc2a777
update textlint npm install
svrnm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,16 @@ | ||
name: Check spelling | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
name: Check spelling | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: streetsidesoftware/cspell-action@v2 | ||
with: | ||
files: | | ||
content/**/* | ||
config: .vscode/cspell.json |
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,17 @@ | ||
name: Check text linter rules | ||
# cSpell:ignore startswith | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
name: Check text linter rules | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Make sure that we only install the dependencies for textlint to speed up install | ||
- run: | | ||
jq 'del(.dependencies) | .scripts |= with_entries(select(.key | contains("check:"))) | .devDependencies |= with_entries( select(.key | startswith("textlint")))' package.json > package2.json && mv package2.json package.json | ||
- run: npm install | ||
- run: npm run check:text |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions:
package.json > package2.json && mv package2.json package.json
to just
package.json > package.json
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prepare
-- I don't know if that can help simplify the jq arguments.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, actually, without modifying
scripts
, you can avoidprepare
being run by adding the--ignore-scripts
flag to the twonpm
commands below.