Skip to content

Commit 3d22373

Browse files
committed
ci: add test step to verify pr workflow
+ run prettier check on `lint` step
1 parent 5f2b570 commit 3d22373

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/verify-pr.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ jobs:
2626

2727
- name: Lint
2828
run: pnpm lint
29+
test:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Install
36+
uses: ./.github/actions/install
37+
with:
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
40+
- name: Test
41+
run: pnpm test
2942
build:
3043
runs-on: ubuntu-latest
3144
steps:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"clean": "rimraf --glob packages/*/dist temp .eslintcache",
1818
"clean:all": "pnpm clean && rimraf --glob node_modules packages/*/node_modules",
1919
"format": "prettier . --write --ignore-unknown",
20-
"lint": "eslint --cache .",
20+
"lint": "eslint --cache . && prettier -c .",
21+
"test": "pnpm -r --parallel run test",
2122
"lerna": "lerna",
2223
"ci:release": "lerna version",
2324
"ci:publish": "lerna publish from-package",

0 commit comments

Comments
 (0)