@@ -27,18 +27,18 @@ jobs:
2727 with :
2828 fetch-depth : 0 # required for git-diff later
2929
30- # 2 ▸ Set up pnpm
31- - uses : pnpm/action-setup@v3
32- with :
33- version : 10.12.1
34- run_install : false
35-
36- # 3 ▸ Node + pnpm-store cache
30+ # 2 ▸ Node + pnpm-store cache
3731 - uses : actions/setup-node@v4
3832 with :
3933 node-version : 20
4034 cache : pnpm
4135
36+ # 3 ▸ Set up pnpm
37+ - uses : pnpm/action-setup@v3
38+ with :
39+ version : 10.12.1
40+ run_install : false
41+
4242 # 4 ▸ Install deps (deterministic)
4343 - name : Install dependencies
4444 run : pnpm install --frozen-lockfile
@@ -49,42 +49,31 @@ jobs:
4949 uses : actions/cache@v4
5050 with :
5151 path : ~/.cache/ms-playwright
52- key : ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml ') }}
52+ key : ${{ runner.os }}-playwright-${{ hashFiles('packages/core/package.json ') }}
5353 restore-keys : |
5454 ${{ runner.os }}-playwright-
5555
5656 - name : Install Playwright browsers (if cache miss)
5757 if : steps.pw-cache.outputs.cache-hit != 'true'
5858 run : pnpm --filter @react-zero-ui/core exec playwright install --with-deps
5959
60- - name : Save Playwright cache
61- if : steps.pw-cache.outputs.cache-hit != 'true'
62- uses : actions/cache/save@v4
63- with :
64- path : ~/.cache/ms-playwright
65- key : ${{ steps.pw-cache.outputs.cache-primary-key }}
66-
6760 # 6 ▸ Lint fast, fail fast
6861 - name : Lint
6962 run : pnpm lint
7063
71- # 7 ▸ Install Lockfile
72- - name : Install Lockfile
73- run : pnpm install --frozen-lockfile
74-
75- # 8 ▸ Run Build
64+ # 7 ▸ Run Build
7665 - name : Run Build
7766 run : pnpm build
7867
79- # 9 ▸ Run Prepack
68+ # 8 ▸ Run Prepack
8069 - name : Run Prepack
8170 run : pnpm prepack:core
8271
83- # 10 ▸ Run Install Tarball
72+ # 9 ▸ Run Install Tarball
8473 - name : Run Install Tarball
8574 run : pnpm i-tarball
8675
87- # 11 ▸ Run all tests
76+ # 10 ▸ Run all tests
8877 - name : Run Vite tests
8978 run : pnpm test:vite
9079
9786 - name : Run CLI tests
9887 run : pnpm test:cli
9988
100- - name : Run unit tests 2
101- run : pnpm test:unit-2
89+ - name : Run integration tests
90+ run : pnpm test:integration
0 commit comments