Skip to content

Commit b22c8a3

Browse files
committed
update
1 parent cbd1f78 commit b22c8a3

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

.github/workflows/run-tests.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v2
18+
with:
19+
version: 10.12.2
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "20.x"
25+
cache: "pnpm"
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build packages
31+
run: pnpm build
32+
33+
- name: Upload build artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: build-artifacts
37+
path: |
38+
packages/*/dist
39+
node_modules
40+
retention-days: 1
41+
42+
test:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
package:
49+
- agentic-kit
50+
- anthropic
51+
- ollama
52+
- openai
53+
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
58+
- name: Setup pnpm
59+
uses: pnpm/action-setup@v2
60+
with:
61+
version: 10.12.2
62+
63+
- name: Setup Node.js
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: "20.x"
67+
cache: "pnpm"
68+
69+
- name: Download build artifacts
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: build-artifacts
73+
74+
- name: Install dependencies
75+
run: pnpm install --frozen-lockfile
76+
77+
- name: Run tests for ${{ matrix.package }}
78+
run: |
79+
cd packages/${{ matrix.package }}
80+
pnpm test --verbose

0 commit comments

Comments
 (0)