Merge pull request #6954 from Kilo-Org/docs/kiloclaw-architecture-dia… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| unit: | |
| name: unit (${{ matrix.settings.name }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| settings: | |
| - name: linux | |
| host: blacksmith-4vcpu-ubuntu-2404 | |
| - name: windows | |
| host: blacksmith-4vcpu-windows-2025 | |
| runs-on: ${{ matrix.settings.host }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Bun | |
| uses: ./.github/actions/setup-bun | |
| - name: Configure git identity | |
| run: | | |
| git config --global user.email "bot@opencode.ai" | |
| git config --global user.name "opencode" | |
| - name: Run unit tests | |
| run: bun turbo test | |
| e2e: | |
| # kilocode_change - disabled: packages/app is not actively maintained | |
| if: false | |
| name: e2e (${{ matrix.settings.name }}) | |
| needs: unit | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| settings: | |
| - name: linux | |
| host: blacksmith-4vcpu-ubuntu-2404 | |
| playwright: bunx playwright install --with-deps | |
| - name: windows | |
| host: blacksmith-4vcpu-windows-2025 | |
| playwright: bunx playwright install | |
| runs-on: ${{ matrix.settings.host }} | |
| env: | |
| PLAYWRIGHT_BROWSERS_PATH: 0 | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Bun | |
| uses: ./.github/actions/setup-bun | |
| - name: Install Playwright browsers | |
| working-directory: packages/app | |
| run: ${{ matrix.settings.playwright }} | |
| - name: Run app e2e tests | |
| run: bun --cwd packages/app test:e2e:local | |
| env: | |
| CI: true | |
| # kilocode_change start | |
| KILO_API_KEY: ${{ secrets.KILO_API_KEY }} | |
| KILO_ORG_ID: ${{ secrets.KILO_ORG_ID }} | |
| KILO_DISABLE_SHARE: "true" | |
| KILO_DISABLE_SESSION_INGEST: "true" | |
| # kilocode_change end | |
| timeout-minutes: 30 | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-${{ matrix.settings.name }}-${{ github.run_attempt }} | |
| if-no-files-found: ignore | |
| retention-days: 7 | |
| path: | | |
| packages/app/e2e/test-results | |
| packages/app/e2e/playwright-report | |
| required: | |
| name: test (linux) | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| needs: | |
| - unit | |
| if: always() | |
| steps: | |
| - name: Verify upstream test jobs passed | |
| run: | | |
| echo "unit=${{ needs.unit.result }}" | |
| test "${{ needs.unit.result }}" = "success" |