ci: make tests passing a requirement pre-release

This commit is contained in:
Aiden Cline
2026-01-27 11:27:53 -05:00
parent f12f7e7718
commit 8c00818108
2 changed files with 6 additions and 1 deletions

View File

@@ -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:

View File

@@ -6,6 +6,7 @@ on:
- dev
pull_request:
workflow_dispatch:
workflow_call:
jobs:
test:
name: test (${{ matrix.settings.name }})