Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 42 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
check:
name: Type-check + install smoke test
name: Type-check + unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,12 +21,51 @@ jobs:
- name: Install deps
run: bun install --frozen-lockfile

# install.test.ts runs the real install flow → preflight requires
# opencode on PATH. The runner has none.
- name: Install opencode
run: |
set -euo pipefail
curl -fsSL https://github.com/sst/opencode/releases/latest/download/opencode-linux-x64.tar.gz -o /tmp/opencode.tgz
mkdir -p /tmp/opencode-extract
tar xzf /tmp/opencode.tgz -C /tmp/opencode-extract
BIN="$(find /tmp/opencode-extract -name opencode -type f | head -1)"
[[ -n "$BIN" ]] || { echo "opencode binary not found in tarball"; ls -R /tmp/opencode-extract; exit 1; }
sudo install "$BIN" /usr/local/bin/opencode
opencode --version

- name: TypeScript type-check
run: bun run check

- name: Run tests
run: bun test
continue-on-error: true

- name: Verify CLI entry
run: bun run bin/ework-aio.js --help || true
run: bun run bin/ework-aio --help

e2e:
name: Docker E2E (install + lifecycle + migration)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

# e2e-install.sh mounts the host's opencode binary into the test
# container (preflight requires it). The runner has none, so install
# from the sst/opencode GitHub release — the same source README points
# users at (https://opencode.ai).
- name: Install opencode
run: |
set -euo pipefail
curl -fsSL https://github.com/sst/opencode/releases/latest/download/opencode-linux-x64.tar.gz -o /tmp/opencode.tgz
mkdir -p /tmp/opencode-extract
tar xzf /tmp/opencode.tgz -C /tmp/opencode-extract
BIN="$(find /tmp/opencode-extract -name opencode -type f | head -1)"
[[ -n "$BIN" ]] || { echo "opencode binary not found in tarball"; ls -R /tmp/opencode-extract; exit 1; }
sudo install "$BIN" /usr/local/bin/opencode
opencode --version

- name: Run E2E install test
run: ./scripts/e2e-install.sh docker latest
env:
OPENCODE_HOST_BIN: /usr/local/bin/opencode
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.env
*.log
package-lock.json
221 changes: 221 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading