ci: add prettier lint check workflow
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
name: "Prettier Check"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint_check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup NodeJS
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "22.x"
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: npm i
|
||||||
|
|
||||||
|
- name: Check lint
|
||||||
|
run: npm run lint:ci
|
||||||
Reference in New Issue
Block a user