Skip to content

Commit 2c3f890

Browse files
committed
chore: add prettier ci
1 parent 3e46dd2 commit 2c3f890

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1417
jobs:
1518
test:
@@ -47,3 +50,28 @@ jobs:
4750

4851
- name: Run Test
4952
run: pnpm run test
53+
54+
check:
55+
name: Check
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Install Pnpm
63+
run: |
64+
npm install -g corepack@latest
65+
corepack enable
66+
67+
- name: Setup Node.js
68+
uses: actions/setup-node@v4
69+
with:
70+
node-version: ${{ matrix.node }}
71+
cache: "pnpm"
72+
73+
- name: Install Dependencies
74+
run: pnpm install
75+
76+
- name: Prettier
77+
run: pnpm run prettier:ci

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"lint": "biome check .",
2626
"lint:write": "biome check . --write",
2727
"format": "prettier --write .",
28+
"prettier:ci": "prettier --check .",
2829
"test:install": "cross-env ./node_modules/.bin/puppeteer browsers install chrome",
2930
"test": "pnpm run test:install && pnpm run build && cross-env NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ./node_modules/jest-cli/bin/jest --colors",
3031
"release": "node ./scripts/release.mjs"

0 commit comments

Comments
 (0)