Skip to content

Commit a560bf4

Browse files
authored
Add test:unit script (#63)
1 parent ef36a99 commit a560bf4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
key: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-${{ hashFiles('**/package-lock.json') }}
7070
restore-keys: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-
7171
- name: Testing
72-
run: npm run test:unit:2 && npm run test:unit:3
72+
run: npm run test:unit
7373
- name: Sending to Code Climate
7474
env:
7575
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:prod": "npm run use-vue:2 && cross-env NODE_ENV=production npm run build",
1111
"lint": "vue-cli-service lint --max-warnings 0",
1212
"lint:ci": "npm run lint -- --no-fix",
13+
"test:unit": "npm run test:unit:2 && npm run test:unit:3",
1314
"test:unit:2": "npm run use-vue:2 && vue-cli-service test:unit",
1415
"test:unit:3": "npm run use-vue:3 && vue-cli-service test:unit",
1516
"use-vue:2": "node scripts/swap-vue.js 2 && vue-demi-switch 2",

0 commit comments

Comments
 (0)