Skip to content

Commit 9ba4d50

Browse files
committed
format in ci
1 parent 5d632e1 commit 9ba4d50

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
uses: pnpm/action-setup@v4
2727
with:
2828
run_install: true
29-
29+
30+
- name: Format check
31+
run: pnpm prettier --check .
32+
3033
- name: Run hardhat tests
31-
env:
34+
env:
3235
NODE_OPTIONS: "--experimental-loader ts-node/esm/transpile-only --no-warnings=ExperimentalWarning"
3336
run: pnpm hardhat test
3437

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"test": "FORGE_SNAPSHOT_EMIT=false forge test && FOUNDRY_PROFILE=hardhat pnpm hardhat test",
77
"compile": "forge compile && FOUNDRY_PROFILE=hardhat pnpm hardhat compile",
8+
"format": "prettier --write .",
89
"snapshots": "sh ./generate-snapshots.sh",
910
"clean": "rm -rf cache_hardhat cache coverage artifacts"
1011
},

0 commit comments

Comments
 (0)