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
31 changes: 31 additions & 0 deletions .github/workflows/v1-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: V1 Headless E2E

on:
push:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.9"

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Install OpenCode V1
run: bun install --global opencode-ai@1.18.3

- name: Run V1 headless E2E tests
run: npm run test:v1:e2e
env:
OPENCODE_E2E_AUTH_JSON: ${{ secrets.OPENCODE_E2E_AUTH_JSON }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"typecheck:bun": "bun --bun tsc --noEmit",
"typecheck:bun-build": "bun build src/index.ts --target=bun",
"typecheck:bun-run": "bun run src/index.ts",
"test:v1:e2e": "npm run build && OPENCODE_E2E=1 bun test tests/e2e.v1-headless.test.ts",
"dev": "tsc --watch",
"prepublishOnly": "npm run build"
},
Expand Down
Loading
Loading