-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (81 loc) · 2.97 KB
/
Copy pathci.yml
File metadata and controls
105 lines (81 loc) · 2.97 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# Weekly slot for the secret-gated live-CLI job; also runnable on demand.
schedule:
- cron: '0 5 * * 1' # Monday 05:00 UTC
workflow_dispatch: {}
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
# Skill mirrors (.claude/skills, .agents/skills, vue-webpack playground)
# must match the canonical skills/ tree — re-run sync and fail on drift.
- run: pnpm sync:skills && git diff --exit-code skills .claude/skills .agents/skills playgrounds/simple/vue-webpack/.claude/skills
- run: pnpm audit --prod --audit-level=high
continue-on-error: true
- run: pnpm build
- run: pnpm typecheck
- run: pnpm test
e2e:
runs-on: ubuntu-latest
needs: build-and-test
strategy:
fail-fast: false
matrix:
project: [vue-vite, react-vite]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: npx playwright install --with-deps chromium
- run: pnpm test:e2e --project=${{ matrix.project }}
# Live agent-apply loop against a REAL CLI. Gated on a repo secret so it only
# runs where credentials exist (fork PRs and unconfigured repos skip it); runs
# on the weekly schedule + manual dispatch, never per-PR (cost + auth). This is
# the only automated proof that the full apply→write→verify loop works end to
# end with a real provider; the per-PR suites cover the server lifecycle/undo
# logic deterministically without a CLI.
live-cli:
runs-on: ubuntu-latest
needs: build-and-test
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && vars.ANNOTASK_RUN_LIVE_CLI == '1' }}
env:
ANNOTASK_LIVE_CLI: '1'
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
# Install the Claude CLI the live suite drives. Other providers can be
# added the same way once their CI auth story is sorted.
- run: npm install -g @anthropic-ai/claude-code
# The apply-session matrix + live providers self-skip without
# ANNOTASK_LIVE_CLI=1; here it's set, so they run against the real CLI.
- run: ANNOTASK_LIVE_ONLY=claude pnpm vitest run src/server/__tests__/apply-session-matrix.test.ts