Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move node-validation to seprate file (#584)
Co-authored-by: qing <qing@imideMacBook-Air.local>
- Loading branch information
Showing
2 changed files
with
40 additions
and
30 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,40 @@ | ||
name: Lint code | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
node-validation: | ||
name: Node Validation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v3 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Oxc Lint | ||
run: pnpm lint-code | ||
|
||
- name: Lint Filename | ||
run: pnpm lint-filename | ||
|
||
- name: Format Check | ||
run: pnpm format:ci | ||
|
||
- name: Lint Spell | ||
run: pnpm lint-spell |