-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (41 loc) · 1.88 KB
/
code.smoke-test.yml
File metadata and controls
51 lines (41 loc) · 1.88 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
name: Smoke Tests
permissions:
contents: read
# Trigger on every push to any branch
on:
push:
jobs:
smoke:
name: Run Cypress Smoke Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v4
with:
node-version: '24'
cache: 'npm'
- name: Install base dependencies
run: npm ci
# ────────────────────────────────────────────────────
# Start LISA UI in background & wait until it’s ready
# ────────────────────────────────────────────────────
- name: Start LISA UI server
run: npm run --prefix lib/user-interface/react dev &
- name: Wait for UI to respond
run: npx wait-on http://localhost:3000
# ────────────────────────────────────────────────────
# Execute Cypress tests
# ────────────────────────────────────────────────────
- name: Run Cypress Smoke Suite
working-directory: cypress
run: npx cypress run --config-file cypress.smoke.config.ts
- name: Archive Cypress videos & screenshots
if: failure() || always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v4
with:
name: cypress-smoke-artifacts
path: |
cypress/smoke/videos
cypress/smoke/screenshots