Skip to content

Commit 23eebda

Browse files
committed
test: split unit and nuxt tests
1 parent f3923fe commit 23eebda

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,27 @@ jobs:
5858
- name: 💪 Type check
5959
run: pnpm test:types
6060

61+
unit:
62+
runs-on: ubuntu-latest
63+
64+
steps:
65+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
66+
67+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
68+
with:
69+
node-version: lts/*
70+
71+
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
72+
name: Install pnpm
73+
with:
74+
cache: true
75+
76+
- name: 📦 Install dependencies
77+
run: pnpm install
78+
79+
- name: 🧪 Unit tests
80+
run: pnpm test:unit --project unit run --coverage
81+
6182
test:
6283
runs-on: ubuntu-latest
6384

@@ -80,7 +101,7 @@ jobs:
80101
run: pnpm playwright install chromium-headless-shell
81102

82103
- name: 🧪 Unit and component tests
83-
run: pnpm vite test run --coverage
104+
run: pnpm vite test --project nuxt run --coverage
84105

85106
- name: Upload coverage reports to Codecov
86107
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5

0 commit comments

Comments
 (0)