Skip to content

Commit 0204d38

Browse files
committed
NPA-5054 Add Prettier Commit Check Job
1 parent de92e8e commit 0204d38

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Prettier Checks
2+
on:
3+
pull_request:
4+
branches: [master]
5+
permissions:
6+
contents: read
7+
jobs:
8+
PrettierChecks:
9+
name: Prettier Checks
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
persist-credentials: false
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
22+
- name: Install dependencies
23+
shell: bash
24+
run: npm install
25+
26+
- name: Run Prettier
27+
shell: bash
28+
run: npx prettier --check .

0 commit comments

Comments
 (0)