Compare commits
3 commits
0100a92f16
...
c5731f133a
Author | SHA1 | Date | |
---|---|---|---|
c5731f133a | |||
aded2add59 | |||
0c617d6855 |
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/pr-lint-format.yml
Normal file
23
.forgejo/workflows/pr-lint-format.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Lint and Format Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
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