@@ -21,6 +21,7 @@ permissions:
2121
2222jobs :
2323 lint :
24+ name : 🔠 Lint project
2425 runs-on : ubuntu-latest
2526
2627 steps :
@@ -31,13 +32,58 @@ jobs:
3132 node-version : lts/*
3233
3334 - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34- name : Install pnpm
35+ name : 🟧 Install pnpm
3536 # pnpm cache skipped deliberately as the project is not actually installed here
3637
3738 - name : 🔠 Lint project
3839 run : node scripts/lint.ts
3940
41+ types :
42+ name : 💪 Type check
43+ runs-on : ubuntu-latest
44+
45+ steps :
46+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
47+
48+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
49+ with :
50+ node-version : lts/*
51+
52+ - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
53+ name : 🟧 Install pnpm
54+ with :
55+ cache : true
56+
57+ - name : 📦 Install dependencies
58+ run : pnpm install
59+
60+ - name : 💪 Type check
61+ run : pnpm test:types
62+
63+ unit :
64+ name : 🧪 Unit tests
65+ runs-on : ubuntu-latest
66+
67+ steps :
68+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
69+
70+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
71+ with :
72+ node-version : lts/*
73+
74+ - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
75+ name : 🟧 Install pnpm
76+ with :
77+ cache : true
78+
79+ - name : 📦 Install dependencies
80+ run : pnpm install
81+
82+ - name : 🧪 Unit tests
83+ run : pnpm test:unit --project unit run --coverage
84+
4085 test :
86+ name : 🧪 Component tests
4187 runs-on : ubuntu-latest
4288
4389 steps :
4894 node-version : lts/*
4995
5096 - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
51- name : Install pnpm
97+ name : 🟧 Install pnpm
5298 with :
5399 cache : true
54100
@@ -58,18 +104,16 @@ jobs:
58104 - name : 🌐 Install browser
59105 run : pnpm playwright install chromium-headless-shell
60106
61- - name : 💪 Type check
62- run : pnpm test:types
63-
64- - name : 🧪 Unit and component tests
65- run : pnpm vite test run --coverage
107+ - name : 🧪 Component tests
108+ run : pnpm vite test --project nuxt run --coverage
66109
67110 - name : Upload coverage reports to Codecov
68111 uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
69112 env :
70113 CODECOV_TOKEN : 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9
71114
72115 browser :
116+ name : 🖥️ Browser tests
73117 runs-on : ubuntu-latest
74118 container :
75119 image : mcr.microsoft.com/playwright:v1.58.0-noble
82126 node-version : lts/*
83127
84128 - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
85- name : Install pnpm
129+ name : 🟧 Install pnpm
86130 with :
87131 cache : true
88132
96140 run : pnpm test:browser:prebuilt
97141
98142 a11y :
143+ name : ♿ Accessibility audit
99144 runs-on : ubuntu-latest
100145 strategy :
101146 matrix :
@@ -109,7 +154,7 @@ jobs:
109154 node-version : lts/*
110155
111156 - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
112- name : Install pnpm
157+ name : 🟧 Install pnpm
113158 with :
114159 cache : true
115160
@@ -126,6 +171,7 @@ jobs:
126171 LIGHTHOUSE_COLOR_MODE : ${{ matrix.mode }}
127172
128173 knip :
174+ name : 🧹 Unused code check
129175 runs-on : ubuntu-latest
130176
131177 steps :
@@ -136,12 +182,12 @@ jobs:
136182 node-version : lts/*
137183
138184 - uses : pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
139- name : Install pnpm
185+ name : 🟧 Install pnpm
140186 with :
141187 cache : true
142188
143189 - name : 📦 Install dependencies
144190 run : pnpm install
145191
146- - name : 🔍 Check for unused code
192+ - name : 🧹 Check for unused code
147193 run : pnpm knip
0 commit comments