Skip to content

Commit ed9039d

Browse files
committed
prettier action
1 parent 3873d80 commit ed9039d

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

.github/workflows/prettier.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Prettier Formatting Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
prettier:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
ref: ${{ github.head_ref }}
17+
persist-credentials: false
18+
19+
- name: Prettify code
20+
uses: creyD/[email protected]
21+
with:
22+
dry: True

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"start": "concurrently \"cd backend && npm start\" \"cd client && npm start\"",
8-
"test": "cd backend && npm test",
9-
"install-all": "npm ci && cd backend && npm ci && cd ../client && npm ci",
10-
"cypress": "cypress open"
7+
"start": "concurrently \"cd backend && pnpm start\" \"cd client && pnpm start\"",
8+
"test": "cd backend && pnpm test",
9+
"install-all": "pnpm install && cd backend && pnpm install && cd ../client && pnpm install",
10+
"cypress": "cypress open",
11+
"pret": "pnpm prettier --write ."
1112
},
1213
"keywords": [],
1314
"author": "",
@@ -16,6 +17,7 @@
1617
"axios": "^0.27.2",
1718
"concurrently": "^4.0.1",
1819
"mocha": "^8.1.3",
20+
"prettier": "^3.5.2",
1921
"sequelize": "6.17",
2022
"sequelize-typescript": "^2.1.3"
2123
},

0 commit comments

Comments
 (0)