-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kristina Devochko <[email protected]>
- Loading branch information
1 parent
c5f25f7
commit 1fbe50f
Showing
9 changed files
with
46 additions
and
103 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 |
---|---|---|
@@ -1,35 +1,54 @@ | ||
--- | ||
name: Check | ||
name: Quality Checks | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Setup: | ||
check-modified-files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
any_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
run: make setup | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
Markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm run check:markdown | ||
- uses: tj-actions/changed-files@v39 | ||
id: changed-files | ||
with: | ||
files: '**/*.md' | ||
separator: ',' | ||
|
||
Spelling: | ||
run-quality-checks: | ||
runs-on: ubuntu-latest | ||
needs: Setup | ||
needs: check-modified-files | ||
if: needs.check-modified-files.outputs.any_changed == 'true' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Spelling | ||
run: make spelling | ||
- name: Lint Markdown files | ||
uses: DavidAnson/[email protected] | ||
with: | ||
globs: ${{ needs.check-modified-files.outputs.all_changed_files }} | ||
separator: ',' | ||
config: '.markdownlint.jsonc' | ||
fix: true | ||
continue-on-error: false | ||
|
||
Links: | ||
runs-on: ubuntu-latest | ||
needs: Setup | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Links | ||
run: make links | ||
- name: Validate spelling | ||
uses: streetsidesoftware/[email protected] | ||
with: | ||
config: '.' | ||
files: '**/*.md' | ||
inline: 'error' | ||
strict: true | ||
incremental_files_only: true # Limit the files checked to the ones in the pull request or push. | ||
|
||
- name: Validate links in Markdown files | ||
uses: gaurav-nelson/[email protected] | ||
with: | ||
check-modified-files-only: true | ||
config-file: 'link-config.json' | ||
base-branch: 'main' | ||
file-extension: '.md' |
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,3 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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