Skip to content

Commit fe171bf

Browse files
committedFeb 11, 2024
ci: fix run e2e test
1 parent 92dfd0f commit fe171bf

File tree

6 files changed

+142
-14
lines changed

6 files changed

+142
-14
lines changed
 

‎.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: pnpm schema:build
5454

5555
- name: Run tests
56-
run: pnpm test
56+
run: pnpm test:ci
5757

5858
# lint:
5959

Binary file not shown.

‎apps/client/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"generate": "nuxt generate",
99
"preview": "nuxt preview",
1010
"postinstall": "nuxt prepare",
11-
"test": "vitest run && cypress run",
12-
"test:watch": "vitest",
11+
"test": "pnpm run test:unit:run &&pnpm run test:e2e:run",
12+
"test:unit:watch": "vitest",
13+
"test:unit:run":"vitest run",
14+
"test:e2e:run":"cypress run",
15+
"test:ci": "start-server-and-test dev http://localhost:3000 test",
1316
"cypress:open": "cypress open"
1417
},
1518
"devDependencies": {
@@ -25,6 +28,7 @@
2528
"happy-dom": "^13.3.1",
2629
"naive-ui": "^2.37.3",
2730
"nuxt": "^3.9.0",
31+
"start-server-and-test": "^2.0.3",
2832
"tailwindcss": "^3.4.1",
2933
"vfonts": "^0.0.3",
3034
"vite": "^5.1.0",

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"build:serve": "pnpm schema:build && pnpm -F api build",
2020
"build:client": "pnpm -F client generate",
2121
"prod:serve": "pnpm -F api start:prod:pm",
22-
"test":"pnpm -F api test && pnpm -F client test"
22+
"test": "pnpm -F api test && pnpm -F client test",
23+
"test:ci": "pnpm -F api test && pnpm -F client test:ci"
2324
},
2425
"keywords": [],
2526
"author": "",

‎pnpm-lock.yaml

+133-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Failed to load comments.