Skip to content

The open source coding agent.

TypeScript

ci: make tests passing a requirement pre-release

Aiden Cline8c0081810870
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 8d7a823b144..f2c7f4ea001 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -29,9 +29,13 @@ permissions:
packages: write
jobs:
+ test:
+ if: github.event_name == 'workflow_dispatch'
+ uses: ./.github/workflows/test.yml
publish:
+ needs: test
runs-on: blacksmith-4vcpu-ubuntu-2404
- if: github.repository == 'anomalyco/opencode'
+ if: always() && github.repository == 'anomalyco/opencode' && (github.event_name != 'workflow_dispatch' || needs.test.result == 'success')
steps:
- uses: actions/checkout@v3
with:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d95de94d232..fca227fa869 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -6,6 +6,7 @@ on:
- dev
pull_request:
workflow_dispatch:
+ workflow_call:
jobs:
test:
name: test (${{ matrix.settings.name }})