forked from voideditor/void
-
Notifications
You must be signed in to change notification settings - Fork 27
144 lines (119 loc) · 3.58 KB
/
Copy pathphase0-qa.yml
File metadata and controls
144 lines (119 loc) · 3.58 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
name: Phase 0 QA
on:
push:
branches: [main]
pull_request:
branches:
- main
- 'release/*'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: phase0-qa-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
phase0-unit:
name: Phase 0 unit regression
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci --ignore-scripts
env:
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install build dependencies
run: npm ci
working-directory: build
- name: Transpile source
run: npm run transpile-client
- name: Run CortexIDE unit regression (Phase 0 + Phase 2)
run: npm run test-cortexide-qa
phase0-cdp-macos:
name: Phase 0 CDP smoke (macOS)
if: github.event_name == 'workflow_dispatch'
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v6
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install build dependencies
run: npm ci
working-directory: build
- name: Build React UI
run: npm run buildreact
- name: Build Electron dev app
run: node build/lib/preLaunch.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Phase 0 QA (unit + CDP + Phase 1 safety)
run: test/cortexide-smoke/run-phase0-qa.sh --cdp
env:
CX_CDP_PORT: 9222
CX_WS: /tmp/cx-phase0-qa-ws
CX_PROFILE: /tmp/cx-phase0-qa-profile
- name: Upload CDP screenshot on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: phase0-qa-screenshot
path: /tmp/cortexide-phase0-qa.png
if-no-files-found: ignore
phase0-cdp-windows:
name: Phase 0 CDP smoke (Windows — menubar dropdown gate)
if: github.event_name == 'workflow_dispatch'
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install build dependencies
run: npm ci
working-directory: build
- name: Build React UI
run: npm run buildreact
- name: Build Electron dev app
run: node build/lib/preLaunch.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Phase 0 QA (unit + CDP + Phase 1 safety)
shell: bash
run: test/cortexide-smoke/run-phase0-qa.sh --cdp
env:
CX_CDP_PORT: 9222
CX_WS: C:/Temp/cx-phase0-qa-ws
CX_PROFILE: C:/Temp/cx-phase0-qa-profile
- name: Upload CDP screenshot on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: phase0-qa-windows-screenshot
path: ${{ runner.temp }}/cortexide-phase0-qa.png
if-no-files-found: ignore