Repository navigation
68 lines (64 loc) · 1.97 KB
/
Copy pathci.yml
File metadata and controls
68 lines (64 loc) · 1.97 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_call:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
# Guard against checks hanging indefinitely.
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run check:release-gates
- run: npm run corp:build-brain
- run: npm run corp:check
- run: npm run typecheck
- run: npm run build
- run: npm test
- run: test -f out/main/index-corp.js
- run: npx playwright install --with-deps chromium
- run: npm run test:experience
- run: npm run test:crm-browser
- run: node scripts/check-release-gates.mjs --reports
- name: Preserve validation evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: validation-smokes
path: |
artifacts/experience-smoke/
artifacts/crm-smoke/
if-no-files-found: warn
retention-days: 14
corp-server-image:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Validate Compose configuration
run: |
cp deploy/corp/.env.example deploy/corp/.env
docker compose --env-file deploy/corp/.env -f deploy/corp/compose.yml config --quiet
- name: Build VPS image (no publication)
run: docker build -f deploy/corp/Dockerfile -t keepmind-corp:test .
- name: Validate server startup and persistent workspace
run: node scripts/corp-container-smoke.mjs keepmind-corp:test
- name: Preserve container evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: corp-container-validation
path: artifacts/corp-container/
if-no-files-found: warn