Skip to content

Commit defb845

Browse files
committed
ci: Add Prettier format check to workflow
1 parent a3f8cfa commit defb845

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20' # Use a recent LTS version
28+
29+
- name: Install backend dependencies and check formatting
30+
run: |
31+
cd backend
32+
npm ci
33+
npm run format:check
34+
35+
- name: Install frontend dependencies and check formatting
36+
run: |
37+
cd frontend
38+
npm ci
39+
npm run format:check
40+
2441
- name: Set up Docker Buildx
2542
uses: docker/setup-buildx-action@v3
2643

@@ -52,4 +69,4 @@ jobs:
5269
tags: ${{ steps.meta.outputs.tags }}
5370
labels: ${{ steps.meta.outputs.labels }}
5471
cache-from: type=gha
55-
cache-to: type=gha,mode=max
72+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)