Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prettier check #31

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
Loading