Skip to content

Commit 6b545a3

Browse files
Add format dryrun
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
1 parent 71cdf5a commit 6b545a3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- name: Install dependencies and build the code
21-
run: |
22-
npm install
23-
npm run build
21+
run: npm install
22+
- name: Verify styling
23+
run: npm run format-dryrun
24+
- name: Run build
25+
run: npm run build

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"start": "npm run build && probot run ./bin/app.js",
1919
"clean": "rm -rf ./bin/*",
2020
"format": "prettier --write \"src/**/*.{js,ts}\" \"test/**/*.ts\" \"configs/**/*.{yaml,yml}\"",
21+
"format-dryrun": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.ts\" \"configs/**/*.{yaml,yml}\"",
2122
"lint": "eslint --fix \"src/**/*.ts\" --ignore-pattern \"**/*.d.ts\"",
2223
"test": "jest"
2324
},

0 commit comments

Comments
 (0)