Quellcode durchsuchen

ci: make tests passing a requirement pre-release

Aiden Cline vor 3 Wochen
Ursprung
Commit
8c00818108
2 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 5 1
      .github/workflows/publish.yml
  2. 1 0
      .github/workflows/test.yml

+ 5 - 1
.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:

+ 1 - 0
.github/workflows/test.yml

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