Repository navigation
73 lines (56 loc) · 1.78 KB
/
Copy pathci-opencode-openwork.yml
File metadata and controls
73 lines (56 loc) · 1.78 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
name: opencode-openwork
on:
pull_request:
paths:
- "packages/opencode-plugin/**"
- "packages/remote-sessions/**"
- ".github/workflows/ci-opencode-openwork.yml"
- ".github/workflows/publish-opencode-plugin.yml"
push:
branches: [dev]
paths:
- "packages/opencode-plugin/**"
- "packages/remote-sessions/**"
- ".github/workflows/ci-opencode-openwork.yml"
- ".github/workflows/publish-opencode-plugin.yml"
permissions:
contents: read
defaults:
run:
working-directory: packages/opencode-plugin
jobs:
check:
name: Test, typecheck & dry-run publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24.22.1
registry-url: https://registry.npmjs.org
- name: Setup Bun for desktop channel tests
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.10
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11.4.0
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts --filter opencode-openwork --filter @different-ai/openwork-workspace
- name: Build shared offload primitives
run: pnpm --dir ../remote-sessions build
- name: Test shared offload primitives
run: pnpm --dir ../remote-sessions test
- name: Test shared installed packaging
run: node --test ../remote-sessions/test/built.test.mjs
- name: Test
run: pnpm test
- name: Typecheck
run: pnpm typecheck
- name: Build
run: pnpm build
- name: Dry-run pack
run: npm pack --dry-run