Skip to content

Commit 8629ad3

Browse files
committed
Test only one suit (to decrease the time in CI)
1 parent 3b505fa commit 8629ad3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
pip install tqdm
8181
8282
- run: pnpm build
83-
- run: pnpm test:ci
83+
- run: pnpm test:ci ${{ matrix.template }}
8484
- run: sh ./scripts/run_tests.sh unzip
8585
- run: pnpm dist_lint
8686

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"build": "vite build",
77
"serve": "vite preview",
88
"test": "rm -rf ./dist-tests && jest --color --runInBand",
9-
"test:ci": "start-server-and-test --expect 200 serve http://127.0.0.1:5000 test",
9+
"test:one": "rm -rf ./dist-tests && jest --color --runInBand -t",
10+
"test:ci": "start-server-and-test --expect 200 serve http://127.0.0.1:5000 test:one",
1011
"release": "node scripts/release.js",
1112
"fmt": "prettier --write . && bash scripts/run_code_style.sh fmt",
1213
"source_lint": "prettier --check . && bash scripts/run_code_style.sh source_lint",

0 commit comments

Comments
 (0)