Skip to content

Commit

Permalink
Add format dryrun
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Sep 25, 2024
1 parent 71cdf5a commit 6b545a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and build the code
run: |
npm install
npm run build
run: npm install
- name: Verify styling
run: npm run format-dryrun
- name: Run build
run: npm run build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"start": "npm run build && probot run ./bin/app.js",
"clean": "rm -rf ./bin/*",
"format": "prettier --write \"src/**/*.{js,ts}\" \"test/**/*.ts\" \"configs/**/*.{yaml,yml}\"",
"format-dryrun": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.ts\" \"configs/**/*.{yaml,yml}\"",
"lint": "eslint --fix \"src/**/*.ts\" --ignore-pattern \"**/*.d.ts\"",
"test": "jest"
},
Expand Down

0 comments on commit 6b545a3

Please sign in to comment.