1616permissions : {}
1717
1818jobs :
19- lint-and-check :
20- runs-on : blacksmith-4vcpu-ubuntu-2404
21- permissions :
22- contents : read
23- steps :
24- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25- with :
26- persist-credentials : false
27- - uses : pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
28- - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
29- with :
30- node-version-file : .node-version
31- cache : pnpm
32- - run : pnpm install --frozen-lockfile
33- - run : pnpm lint
34- - run : pnpm build:all
35- - run : pnpm check
36-
3719 test :
3820 runs-on : ${{ matrix.os }}
3921 permissions :
@@ -44,57 +26,27 @@ jobs:
4426 # Windows runs on main pushes and on PRs labeled "test: windows",
4527 # unless a reusable workflow caller explicitly disables it.
4628 os : ' ${{ (((github.event_name == '' push'' && startsWith(github.ref, '' refs/heads/'' )) || contains(github.event.pull_request.labels.*.name, '' test: windows'' )) && !(github.event_name == '' workflow_call'' && inputs.skip_windows)) && fromJSON('' ["blacksmith-4vcpu-ubuntu-2404","windows-latest"]'' ) || fromJSON('' ["blacksmith-4vcpu-ubuntu-2404"]'' ) }}'
47- suite : [unit, core-markdown, metaframeworks, pages-react-vue, pages-svelte-solid]
48- include :
49- - suite : unit
50- script : test:unit
51- - suite : core-markdown
52- script : test:integration
53- - suite : metaframeworks
54- script : test:metaframeworks
55- retry : 2
56- - suite : pages-react-vue
57- script : test:pages:react-vue
58- retry : 2
59- prebuild : playground/react-pages playground/vue-pages
60- - suite : pages-svelte-solid
61- script : test:pages:svelte-solid
62- retry : 2
63- prebuild : playground/svelte-pages playground/solid-pages
6429 steps :
6530 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6631 with :
6732 persist-credentials : false
68- - uses : pnpm/action-setup@26f6d4f2c533a43e6b5da0b4a5dd983f98f7b49a # v6.0.4
69- - uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
33+ - uses : voidzero-dev/setup-vp@45e5c098f1095cc6b65fd92534603e7be70386c1 # v1
7034 with :
7135 node-version-file : .node-version
72- cache : pnpm
73- - run : pnpm install --frozen-lockfile
74- - run : pnpm build
75-
76- - name : Pre-build playgrounds for preview tests
77- if : matrix.prebuild
78- shell : bash
79- run : |
80- for pg in ${{ matrix.prebuild }}; do
81- pnpm --dir "$pg" build &
82- done
83- wait
36+ cache : true
8437
85- - run : pnpm exec playwright install --with-deps chromium
86- if : matrix.suite != 'unit' && ! contains(matrix.os, 'windows')
38+ - run : vp exec playwright install --with-deps chromium
39+ if : ${{ ! contains(matrix.os, 'windows') }}
8740
88- - run : pnpm exec playwright install chromium
89- if : matrix.suite != 'unit' && contains(matrix.os, 'windows')
41+ - run : vp exec playwright install chromium
42+ if : ${{ contains(matrix.os, 'windows') }}
9043
91- - run : pnpm ${{ matrix.script }}${{ matrix.retry && format(' --retry {0}', matrix.retry) || '' }}
44+ - run : vp run test:all
9245
9346 done :
9447 runs-on : ubuntu-latest
9548 if : always()
9649 needs :
97- - lint-and-check
9850 - test
9951 steps :
10052 - run : exit 1
0 commit comments