-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.42 KB
/
Copy pathci.yml
File metadata and controls
46 lines (37 loc) · 1.42 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout agentos core (peer dependency)
uses: actions/checkout@v6
with:
repository: framersai/agentos
path: packages/agentos
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 20
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build agentos core
# `--ignore-workspace` is required because the agentos-extensions
# pnpm-workspace.yaml at the repo root does not list packages/agentos
# (it's a sibling clone, not a workspace member). Without the flag,
# pnpm walks up to the root workspace, sees agentos isn't a member,
# and silently no-ops — leaving packages/agentos/node_modules absent
# and the build's `rimraf` clean step fails with "command not found".
run: cd packages/agentos && pnpm install --no-frozen-lockfile --ignore-workspace && pnpm run build
- name: Build extensions
run: pnpm run build
- name: Test extensions (skip agentos core tests — tested upstream)
run: pnpm -r --filter '!@framers/agentos' --if-present run test