add action
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 10s
All checks were successful
Lint and Format Check / lint-and-format (pull_request) Successful in 10s
This commit is contained in:
parent
fd60b91ffe
commit
b7cc1565ab
1 changed files with 20 additions and 0 deletions
20
.forgejo/workflows/pr-lint-format.yml
Normal file
20
.forgejo/workflows/pr-lint-format.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Lint and Format Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [main, dev]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-and-format:
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Run lint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Run format check
|
||||||
|
run: npm run format-check
|
Loading…
Reference in a new issue