Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit ed3d43e

Browse files
committed
only run integration tests in ubuntu
1 parent d21c09c commit ed3d43e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
- run: pnpm i
2828

2929
- name: Test
30+
if: ${{ matrix.os }} == "ubuntu-latest"
3031
run: |
3132
export DISPLAY=':99.0'
3233
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
3334
pnpm test
35+
36+
- name: Unit Test
37+
if: ${{ matrix.os }} != "ubuntu-latest"
38+
run: pnpm test-unit

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"lint-fix": "pnpm lint -- --fix",
1919
"format": "prettier --write .",
2020
"typecheck": "tsc --noEmit",
21-
"test": "run-p --print-label build lint && vitest --no-watch",
21+
"test": "pnpm test-unit && pnpm test-integration",
22+
"test-unit": "vitest --no-watch src",
23+
"test-integration": "run-p --print-label build lint && vitest --no-watch tests",
2224
"test-dev": "run-p --print-label --race vitest-ui build-watch",
2325
"vitest-ui": "vitest --ui",
2426
"release": "pnpm test && release-it"

0 commit comments

Comments
 (0)