-
Notifications
You must be signed in to change notification settings - Fork 694
191 lines (176 loc) · 5.94 KB
/
Copy pathcli-e2e.yml
File metadata and controls
191 lines (176 loc) · 5.94 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
name: CLI End to End
on:
push:
branches: [main]
paths:
- ".github/actions/cli-scaffold-e2e/action.yml"
- ".github/workflows/cli-e2e.yml"
- "packages/openui-cli/**"
- "templates/**"
- "tsconfig.json"
pull_request:
branches: [main]
paths:
- ".github/actions/cli-scaffold-e2e/action.yml"
- ".github/workflows/cli-e2e.yml"
- "packages/openui-cli/**"
- "templates/**"
- "tsconfig.json"
permissions:
contents: read
jobs:
package-cli:
name: Package CLI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Build CLI
run: pnpm --filter @openuidev/cli build
- name: Pack CLI
working-directory: packages/openui-cli
run: |
mkdir -p "${RUNNER_TEMP}/cli-package"
npm pack --ignore-scripts --pack-destination "${RUNNER_TEMP}/cli-package"
- uses: actions/upload-artifact@v7
with:
name: openui-cli-package
path: ${{ runner.temp }}/cli-package/*.tgz
if-no-files-found: error
retention-days: 1
cli-e2e:
name: ${{ matrix.template }} (${{ matrix.package-manager }}@${{ matrix.package-manager-version }}, ${{ matrix.os }}, Node ${{ matrix.node-version }})
needs: package-cli
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
template:
- openui-cloud
- openui-self-hosted
configuration:
# Keep one npm and pnpm canary for the legacy Node.js line.
- ubuntu-node20-npm10
- ubuntu-node20-pnpm9
# Exercise established and current package-manager majors on Linux.
- ubuntu-node22-npm10
- ubuntu-node22-npm11
- ubuntu-node22-pnpm10
- ubuntu-node22-pnpm11
- ubuntu-node24-npm11
- ubuntu-node24-pnpm10
- ubuntu-node24-pnpm11
# Keep the non-Linux jobs focused on the current package-manager majors.
- macos-node24-npm11
- macos-node24-pnpm11
- windows-node24-npm11
- windows-node24-pnpm11
include:
- configuration: ubuntu-node20-npm10
os: ubuntu-latest
node-version: 20
package-manager: npm
package-manager-version: "10"
- configuration: ubuntu-node20-pnpm9
os: ubuntu-latest
node-version: 20
package-manager: pnpm
package-manager-version: "9"
- configuration: ubuntu-node22-npm10
os: ubuntu-latest
node-version: 22
package-manager: npm
package-manager-version: "10"
- configuration: ubuntu-node22-npm11
os: ubuntu-latest
node-version: 22
package-manager: npm
package-manager-version: "11"
- configuration: ubuntu-node22-pnpm10
os: ubuntu-latest
node-version: 22
package-manager: pnpm
package-manager-version: "10"
- configuration: ubuntu-node22-pnpm11
os: ubuntu-latest
node-version: 22
package-manager: pnpm
package-manager-version: "11"
- configuration: ubuntu-node24-npm11
os: ubuntu-latest
node-version: 24
package-manager: npm
package-manager-version: "11"
- configuration: ubuntu-node24-pnpm10
os: ubuntu-latest
node-version: 24
package-manager: pnpm
package-manager-version: "10"
- configuration: ubuntu-node24-pnpm11
os: ubuntu-latest
node-version: 24
package-manager: pnpm
package-manager-version: "11"
- configuration: macos-node24-npm11
os: macos-latest
node-version: 24
package-manager: npm
package-manager-version: "11"
- configuration: macos-node24-pnpm11
os: macos-latest
node-version: 24
package-manager: pnpm
package-manager-version: "11"
- configuration: windows-node24-npm11
os: windows-latest
node-version: 24
package-manager: npm
package-manager-version: "11"
- configuration: windows-node24-pnpm11
os: windows-latest
node-version: 24
package-manager: pnpm
package-manager-version: "11"
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/cli-scaffold-e2e
with:
template: ${{ matrix.template }}
backend-framework: default
node-version: ${{ matrix.node-version }}
package-manager: ${{ matrix.package-manager }}
package-manager-version: ${{ matrix.package-manager-version }}
# The default overlay is covered above across operating systems and package
# manager majors; overlays only change dependencies and app code, so one
# current Linux configuration per package manager is enough.
cli-e2e-overlays:
name: ${{ matrix.template }} + ${{ matrix.overlay }} (${{ matrix.package-manager }}@11, ubuntu, Node 24)
needs: package-cli
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
template:
- openui-cloud
- openui-self-hosted
overlay:
- langgraph
- vercel-ai-sdk
- vercel-eve
package-manager:
- npm
- pnpm
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/cli-scaffold-e2e
with:
template: ${{ matrix.template }}
backend-framework: ${{ matrix.overlay }}
node-version: 24
package-manager: ${{ matrix.package-manager }}
package-manager-version: "11"