-
Notifications
You must be signed in to change notification settings - Fork 5
118 lines (91 loc) · 2.53 KB
/
Copy pathci.yml
File metadata and controls
118 lines (91 loc) · 2.53 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
name: CI
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
jobs:
test-client:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build package
run: npm run build
- name: Verify publish tarball
run: npm pack --dry-run
test-aim-ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui/aim-chat
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: ui/aim-chat/package-lock.json
- name: Install client dependencies
run: npm ci
working-directory: client
- name: Build client package
run: npm run build
working-directory: client
- name: Install dependencies
# npm install avoids Rollup's optional dependency bug on Linux runners.
run: npm install
- name: Install Rollup Linux binary
run: npm install --no-save @rollup/rollup-linux-x64-gnu@4.59.0
- name: Run tests
run: npm test
- name: Build UI
run: npm run build
test-tui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui/tui
steps:
- uses: actions/checkout@v4
- name: Install expect
run: sudo apt-get update && sudo apt-get install -y expect
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: ui/tui/package-lock.json
- name: Install client dependencies
run: npm ci
working-directory: client
- name: Build client package
run: npm run build
working-directory: client
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build TUI
run: npm run build
test-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e "python-dist/" && pip install pytest
- name: Run tests
run: python -m pytest python-dist/tests/ -v