Skip to content

Commit 647a91f

Browse files
committed
chore: update
1 parent 247e7d7 commit 647a91f

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ jobs:
1414
uses: actions/setup-node@v1
1515
with:
1616
node-version: ${{ matrix.node-version }}
17-
- name: Prepare v3
18-
run: scripts/prepare.sh v3
1917
- name: Install dependencies (v3)
2018
run: npm install
2119
- name: Test (v3)
22-
run: npm run test
20+
run: npm run test-v3
2321

2422
build-v4:
2523
runs-on: ubuntu-latest
@@ -32,12 +30,10 @@ jobs:
3230
uses: actions/setup-node@v1
3331
with:
3432
node-version: ${{ matrix.node-version }}
35-
- name: Prepare v4
36-
run: scripts/prepare.sh v4
3733
- name: Install dependencies (v4)
3834
run: npm install
3935
- name: Test (v4)
40-
run: npm run test
36+
run: npm run test-v4
4137

4238
build-v3-windows:
4339
runs-on: windows-latest
@@ -52,12 +48,10 @@ jobs:
5248
uses: actions/setup-node@v1
5349
with:
5450
node-version: ${{ matrix.node-version }}
55-
- name: Prepare v3 (Windows)
56-
run: scripts/prepare.sh v3
5751
- name: Install dependencies (v3, Windows)
5852
run: npm install
5953
- name: Test (v3, Windows)
60-
run: npm run test
54+
run: npm run test-v3
6155

6256
build-v4-windows:
6357
runs-on: windows-latest
@@ -72,9 +66,7 @@ jobs:
7266
uses: actions/setup-node@v1
7367
with:
7468
node-version: ${{ matrix.node-version }}
75-
- name: Prepare v4 (Windows)
76-
run: scripts/prepare.sh v4
7769
- name: Install dependencies (v4, Windows)
7870
run: npm install
7971
- name: Test (v4, Windows)
80-
run: npm run test
72+
run: npm run test-v4

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
},
1111
"scripts": {
1212
"release": "lerna publish",
13-
"test": "cross-env ./scripts/prepare.sh",
14-
"test_once": "cross-env ./scripts/prepare.sh v3/midway-framework-web",
13+
"test-v3": "cross-env ./scripts/prepare.sh v3",
14+
"test-v4": "cross-env ./scripts/prepare.sh v4",
15+
"test-v3-once": "cross-env ./scripts/prepare.sh v3/midway-framework-web",
16+
"test-v4-once": "cross-env ./scripts/prepare.sh v4/midway-framework-koa",
1517
"build": "lerna run build"
1618
},
1719
"engines": {

0 commit comments

Comments
 (0)