Skip to content

Commit

Permalink
Fix prettier (#482)
Browse files Browse the repository at this point in the history
* Update root package.json prettier scripts

* Check prettier in CI

* Update pnpm-lock.yaml

* Fix prettier

* Remove wrong dependency in job
  • Loading branch information
fvictorio authored May 30, 2024
1 parent 3a906f9 commit 1a49916
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1,397 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/edr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ jobs:
command: fmt
args: --all --check

- name: Check markdown style
uses: actionsx/prettier@v2
with:
args: --check "**/*.md"

- name: Run cargo clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

Expand All @@ -180,3 +175,24 @@ jobs:
with:
command: doc
args: --workspace --no-deps --all-features

prettier:
name: Run Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Install package
run: pnpm install --frozen-lockfile --prefer-offline

- name: Run prettier
run: pnpm run prettier
4 changes: 1 addition & 3 deletions crates/edr_napi/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

### Minor Changes

- 5b4acdd: Added verbose tracing for hardhat-tracer. Breaking change: The `stack_top`
property of `edr_napi::trace::TracingStep` was removed and `stack` was added
instead. Please see the documentation of the struct for details.
- 5b4acdd: Added verbose tracing for hardhat-tracer. Breaking change: The `stack_top` property of `edr_napi::trace::TracingStep` was removed and `stack` was added instead. Please see the documentation of the struct for details.

### Patch Changes

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"scripts": {
"build": "cd crates/edr_napi && pnpm build",
"prettier": "prettier \".github/**/*.{md,yml,ts,js}\" \"crates/edr_napi/test/**.ts\""
"prettier": "prettier --check \".github/**/*.{yml,ts,js}\" \"crates/edr_napi/test/**.ts\" \"**/*.md\"",
"prettier:fix": "pnpm run prettier --write"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit 1a49916

Please sign in to comment.