forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (43 loc) · 1.44 KB
/
Copy pathoffline-test.yml
File metadata and controls
51 lines (43 loc) · 1.44 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
name: Offline Test
on:
push:
branches:
- dev
paths:
- "packages/opencode/src/offline/**"
- "packages/opencode/src/server/server.ts"
- "script/download-offline-deps.ts"
- "script/package-offline-bundle.ts"
- "test/offline/**"
- ".github/workflows/offline-test.yml"
pull_request:
paths:
- "packages/opencode/src/offline/**"
- "packages/opencode/src/server/server.ts"
- "script/download-offline-deps.ts"
- "script/package-offline-bundle.ts"
- "test/offline/**"
- ".github/workflows/offline-test.yml"
workflow_dispatch:
jobs:
offline-test:
name: offline integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-bun
- name: Download offline dependencies
run: bun run script/download-offline-deps.ts
- name: Build and package bundle
run: bun run script/package-offline-bundle.ts
- name: Verify web app in bundle
run: test -f dist/opencode-offline-linux-x64/deps/app/index.html
- name: Run containerized offline tests
run: docker compose -f test/offline/docker-compose.yml up --build --exit-code-from opencode-offline
- name: Upload bundle on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: offline-bundle-debug
path: dist/opencode-offline-linux-x64/
retention-days: 7