Skip to content

Commit

Permalink
Add prettier-check (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbrg authored Jan 29, 2024
1 parent 4e304aa commit 771e83d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,7 +43,8 @@ jobs:
- name: Update pnpm lockfile
run: pnpm install --no-frozen-lockfile

- name: Install dependencies and run tests
run: |
pnpm install
pnpm test
- name: Install dependencies
run: pnpm install

- name: Check code formatting with Prettier
run: pnpm run prettier-check
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"send:arthera-testnet": "hardhat send --wallet 0xD8a394e7d7894bDF2C57139fF17e5CBAa29Dd977 --network arthera-testnet --amount",
"send:op-sepolia": "hardhat send --wallet 0xD8a394e7d7894bDF2C57139fF17e5CBAa29Dd977 --network op-sepolia --amount",
"bal": "npx hardhat run scripts/check-my-balance.ts --network",
"prettier": "prettier --write ."
"prettier": "prettier --write \"**/*.ts\"",
"prettier-check": "prettier --check \"**/*.ts\""
},
"keywords": [],
"author": "",
Expand Down Expand Up @@ -56,4 +57,4 @@
"ethers": "^6.7.1",
"hardhat-deploy": "^0.11.37"
}
}
}

0 comments on commit 771e83d

Please sign in to comment.