-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.46 KB
/
ci.yml
File metadata and controls
64 lines (53 loc) · 1.46 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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test-root:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Verify CLI
run: |
node bin/agentflow.mjs --help
test-web-ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./builtin/web-ui
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: ./builtin/web-ui/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build Web UI
run: npm run build
lint-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for private registry URLs
run: |
# Ensure no private npm registry URLs in lock files
if grep -r "npm.ppx520.com" package-lock.json builtin/web-ui/package-lock.json 2>/dev/null; then
echo "Error: Found private registry URLs in lock files"
exit 1
fi
echo "✓ No private registry URLs found"