Skip to content

Commit 3b77f20

Browse files
chore: ci fmt check (#459)
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 95e4da2 commit 3b77f20

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/checks.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
format:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Prepare
14+
uses: ./.github/actions/prepare
15+
- name: Lint
16+
run: npm run format:check
17+
18+
may-merge:
19+
needs: ["format"]
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Cleared for merging
23+
run: echo OK

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"write-translations": "docusaurus write-translations",
2626
"write-heading-ids": "docusaurus write-heading-ids",
2727
"typecheck": "tsc",
28-
"format": "prettier . --write ."
28+
"format": "prettier . --write .",
29+
"format:check": "prettier --check ."
2930
},
3031
"dependencies": {
3132
"@docusaurus/core": "^3.8.1",

0 commit comments

Comments
 (0)