-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflows): spellcheck commit messages & misc (#20)
* fix(workflows): set write permission on release * feat(workflows): spellcheck commit messages * misc: update workflow docs * misc: rename cspell.config to .cspell.config * fix(workflows): missing vars * fix(workflows): missing vars * docs: scripts * misc(workflows): bump actions
- Loading branch information
Showing
6 changed files
with
99 additions
and
64 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,11 +17,11 @@ jobs: | |
shell: ${{ steps.list-changed-files.outputs.shell_all_changed_files }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Changed files | ||
id: list-changed-files | ||
uses: tj-actions/changed-files@v44 | ||
uses: tj-actions/changed-files@v45.0.1 | ||
with: | ||
# since_last_remote_commit: true # use only for testing, it's easy to produce no changed files | ||
files_yaml_from_source_file: .changed-files.yml | ||
|
@@ -47,7 +47,7 @@ jobs: | |
BASH_ENV: ./lib.sh | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
@@ -56,16 +56,19 @@ jobs: | |
run: echo '{}' > package-lock.json | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
with: | ||
node-version: lts/iron | ||
cache: npm | ||
- run: npm --global install @commitlint/config-conventional | ||
- run: | | ||
npm --global install @commitlint/config-conventional | ||
npm install --global @commitlint/[email protected] | ||
npm install --global [email protected] | ||
- name: Run commitlint | ||
- name: Lint commits with commitlint and spellcheck | ||
env: | ||
CONFIG_PATH: .commitlintrc.yml | ||
VERSION: 19.3.0 | ||
COMMITLINT_CONFIG_PATH: .commitlintrc.yml | ||
CSPELL_CONFIG_PATH: .cspell.config.yml | ||
# will not be set when running on push/merge to main | ||
BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
run: ./workflows/main/commit_lint.sh | ||
|
@@ -77,7 +80,7 @@ jobs: | |
if: needs.changed-files.outputs.shell | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Lint and format | ||
uses: luizm/[email protected] | ||
|
@@ -99,7 +102,7 @@ jobs: | |
FILES: ${{ needs.changed-files.outputs.config }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Prettier | ||
uses: actionsx/prettier@v3 | ||
|
@@ -114,11 +117,11 @@ jobs: | |
if: (needs.changed-files.outputs.shell || needs.changed-files.outputs.doc) && github.event.local != true | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
|
||
- name: Cspell | ||
uses: streetsidesoftware/cspell-action@v6.4.0 | ||
uses: streetsidesoftware/cspell-action@v6.8.1 | ||
with: | ||
files: "." | ||
incremental_files_only: true | ||
config: ./cspell.config.yml | ||
config: ./.cspell.config.yml |
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