-
Notifications
You must be signed in to change notification settings - Fork 3
118 lines (109 loc) · 5.07 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: ci
"on":
push:
branches:
- main
pull_request:
# copied from vitest
# https://github.com/vitest-dev/vitest/blob/e4e939ba2ab48c67ee14b82ec957fc9a8a52756c/.github/workflows/ci.yml#L12-L14
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
build: false
playwright: false
- run: pnpm lint-check
- run: pnpm build
- run: pnpm tsc
- run: pnpm test
test-react-server-basic:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/react-server/examples/basic test-e2e
- run: pnpm -C packages/react-server/examples/basic build
- run: pnpm -C packages/react-server/examples/basic test-e2e-preview
- run: pnpm -C packages/react-server/examples/basic cf-build
- run: pnpm -C packages/react-server/examples/basic test-e2e-cf-preview
- run: pnpm -C packages/react-server/examples/basic deno-build
test-react-server-basic-swc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: USE_SWC=1 pnpm -C packages/react-server/examples/basic test-e2e
- run: USE_SWC=1 pnpm -C packages/react-server/examples/basic build
- run: pnpm -C packages/react-server/examples/basic test-e2e-preview
test-react-server-others:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/react-server test-e2e
- run: pnpm -C packages/react-server/examples/next test-e2e
- run: pnpm -C packages/react-server/examples/next build
- run: pnpm -C packages/react-server/examples/next test-e2e-preview
- run: pnpm -C packages/react-server/examples/next cf-build
- run: pnpm -C packages/react-server/examples/next test-e2e-cf-preview
- run: pnpm -C packages/react-server/examples/next vc-build
- run: pnpm -C packages/react-server/examples/prerender test-e2e
- run: pnpm -C packages/react-server/examples/prerender build
- run: pnpm -C packages/react-server/examples/prerender test-e2e-preview
- run: pnpm -C packages/react-server/examples/prerender cf-build
- run: pnpm -C packages/react-server/examples/prerender vc-build
- run: pnpm -C packages/react-server/examples/custom-out-dir test-e2e
- run: pnpm -C packages/react-server/examples/custom-out-dir build
- run: pnpm -C packages/react-server/examples/custom-out-dir test-e2e-preview
- run: pnpm -C packages/react-server/examples/custom-out-dir cf-build
- run: pnpm -C packages/react-server/examples/custom-out-dir test-e2e-cf-preview
- run: pnpm -C packages/react-server/examples/custom-out-dir vc-build
- run: pnpm -C packages/react-server/examples/postcss-tailwind test-e2e
- run: pnpm -C packages/react-server/examples/postcss-tailwind build
- run: pnpm -C packages/react-server/examples/postcss-tailwind test-e2e-preview
- run: pnpm -C packages/react-server/examples/cloudflare test-e2e
- run: pnpm -C packages/react-server/examples/cloudflare build
- run: pnpm -C packages/react-server/examples/cloudflare test-e2e-preview
test-react-server-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/react-server test-package
test-vite-node-miniflare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/vite-node-miniflare/examples/basic test-e2e
- run: pnpm -C packages/vite-node-miniflare/examples/react test-e2e
- run: pnpm -C packages/vite-node-miniflare/examples/react-router test-e2e
- run: pnpm -C packages/vite-node-miniflare/examples/remix test-e2e
test-vite-glob-routes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/vite-glob-routes/examples/demo test-e2e
- run: pnpm -C packages/vite-glob-routes/examples/demo build
- run: pnpm -C packages/vite-glob-routes/examples/demo test-e2e-preview
- run: pnpm -C packages/vite-glob-routes/examples/ssr test-e2e
- run: pnpm -C packages/vite-glob-routes/examples/ssr build
- run: pnpm -C packages/vite-glob-routes/examples/ssr test-e2e-preview
- run: pnpm -C packages/vite-glob-routes/examples/spa test-e2e
- run: pnpm -C packages/vite-glob-routes/examples/spa build
- run: pnpm -C packages/vite-glob-routes/examples/spa test-e2e-preview
test-pre-bundle-new-url:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm -C packages/pre-bundle-new-url/examples/basic test-e2e
- run: pnpm -C packages/pre-bundle-new-url/examples/basic build
- run: pnpm -C packages/pre-bundle-new-url/examples/basic test-e2e-preview