summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-27 11:27:53 -0500
committerAiden Cline <[email protected]>2026-01-27 11:31:02 -0500
commit8c00818108700b4aad81a9127d9e1e9adc8254bd (patch)
tree96fcfc6c2ec34f561ce69c9345e36b68c679a177 /.github
parentf12f7e7718c7cbe3058e0154f37291114bef3f58 (diff)
downloadopencode-8c00818108700b4aad81a9127d9e1e9adc8254bd.tar.gz
opencode-8c00818108700b4aad81a9127d9e1e9adc8254bd.zip
ci: make tests passing a requirement pre-release
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/publish.yml6
-rw-r--r--.github/workflows/test.yml1
2 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 8d7a823b1..f2c7f4ea0 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 d95de94d2..fca227fa8 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 }})