summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-20 09:34:05 -0600
committerAdam <[email protected]>2026-01-20 14:02:09 -0600
commit1ac0980c80f9e670145c20e51b03d25242f3ab22 (patch)
tree861867ef4a1ea36a359815b1ab39a6304e1d23db /.github/workflows
parent1d6f650f5340c439c596fc49010b9114e72b0793 (diff)
downloadopencode-1ac0980c80f9e670145c20e51b03d25242f3ab22.tar.gz
opencode-1ac0980c80f9e670145c20e51b03d25242f3ab22.zip
test(app): windows e2e
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml33
1 files changed, 26 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9cf83ca8d..9510aee94 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -8,7 +8,29 @@ on:
workflow_dispatch:
jobs:
test:
- runs-on: blacksmith-4vcpu-ubuntu-2404
+ name: test (${{ matrix.settings.name }})
+ strategy:
+ fail-fast: false
+ matrix:
+ settings:
+ - name: linux
+ host: blacksmith-4vcpu-ubuntu-2404
+ playwright: bunx playwright install --with-deps
+ workdir: .
+ command: |
+ git config --global user.email "[email protected]"
+ git config --global user.name "opencode"
+ bun turbo typecheck
+ bun turbo test
+ - name: windows
+ host: windows-latest
+ playwright: bunx playwright install
+ workdir: packages/app
+ command: bun test:e2e
+ runs-on: ${{ matrix.settings.host }}
+ defaults:
+ run:
+ shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -20,7 +42,7 @@ jobs:
- name: Install Playwright browsers
working-directory: packages/app
- run: bunx playwright install --with-deps
+ run: ${{ matrix.settings.playwright }}
- name: Seed opencode data
working-directory: packages/opencode
@@ -67,11 +89,8 @@ jobs:
exit 1
- name: run
- run: |
- git config --global user.email "[email protected]"
- git config --global user.name "opencode"
- bun turbo typecheck
- bun turbo test
+ working-directory: ${{ matrix.settings.workdir }}
+ run: ${{ matrix.settings.command }}
env:
CI: true
MODELS_DEV_API_JSON: ${{ github.workspace }}/packages/opencode/test/tool/fixtures/models-api.json