-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.11 KB
/
Copy pathexamples.yml
File metadata and controls
45 lines (36 loc) · 1.11 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
name: Examples
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- uses: actions/setup-node@v6
with:
node-version: 22
- name: Install opencode CLI
run: npm install -g opencode-ai
- name: Start opencode serve
run: |
opencode serve &
sleep 10
echo "Server should be ready"
timeout-minutes: 2
- name: Build all examples
run: |
dotnet build examples/Examples.csproj --configuration Release
- name: Run all examples
run: |
for name in hello oneshot multiturn streaming di session filesearch discovery mcp eventmonitor; do
echo "▶️ $name"
timeout 120 dotnet run --project examples/Examples.csproj --configuration Release --no-build -- "$name" || echo "⚠️ $name exited with code $?"
done
continue-on-error: true
timeout-minutes: 10