diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index d92133ea6a..755feb8e62 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -16,6 +16,7 @@ jobs: permissions: contents: write pull-requests: read + actions: write steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,3 +33,8 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: bun script/beta.ts + + - name: Trigger publish workflow + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh workflow run publish.yml --ref beta diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f6cbb16edc..87688be5aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,8 +21,8 @@ jobs: - name: windows host: windows-latest playwright: bunx playwright install - workdir: packages/app - command: bun test:e2e:local + workdir: . + command: bun turbo run @opencode-ai/app#test:e2e:local runs-on: ${{ matrix.settings.host }} defaults: run: @@ -36,6 +36,14 @@ jobs: - name: Setup Bun uses: ./.github/actions/setup-bun + - name: Setup Turborepo Remote Cache + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install Playwright browsers working-directory: packages/app run: ${{ matrix.settings.playwright }} diff --git a/turbo.json b/turbo.json index 5de1b8d751..434c453228 100644 --- a/turbo.json +++ b/turbo.json @@ -13,6 +13,10 @@ "@opencode-ai/app#test": { "dependsOn": ["^build"], "outputs": [] + }, + "@opencode-ai/app#test:e2e:local": { + "dependsOn": ["^build"], + "outputs": [] } } }