summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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