-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (64 loc) · 1.96 KB
/
Copy pathci.yml
File metadata and controls
79 lines (64 loc) · 1.96 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
name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
python-contracts:
name: Python Contracts
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
run: pipx install uv
- name: Install Python dependencies
run: uv sync --extra dev
- name: Run OSS and deployment contract tests
run: >
uv run python -m pytest
tests/test_oss_license_contract.py
tests/test_oss_artifact_hygiene_contract.py
tests/test_oss_community_files_contract.py
tests/test_subdomain_env_contract.py
tests/test_prod_web_sdk_source_contract.py
tests/test_dashboard_web_sdk_copilot_contract.py
tests/test_dashboard_apps_card_default_nav_contract.py
-q
- name: Prepare compose env file for config validation
run: cp .env.example .env
- name: Validate Docker Compose files
run: |
docker compose -f docker-compose.yml config -q
docker compose -f docker-compose.prod.yml config -q
docker compose -f docker-compose.local-deploy.yml config -q
dashboard:
name: Dashboard
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up Node
uses: actions/setup-node@v5
with:
node-version: "22"
cache: npm
cache-dependency-path: dashboard/package-lock.json
- name: Install dashboard dependencies
working-directory: dashboard
run: npm ci
- name: Run dashboard tests
working-directory: dashboard
run: npm test
- name: Build dashboard
working-directory: dashboard
run: npm run build