Always validate on release
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 26 Oct 2025 16:21:57 +0000 (17:21 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 26 Oct 2025 16:21:57 +0000 (17:21 +0100)
.github/workflows/release.yml

index a33d34c3ca749fe0d5192097aa622bc00920b5c4..93f67ee4e08baa21cd9d2424a49fe301e3df1032 100644 (file)
@@ -38,13 +38,10 @@ env:
   BASE_IMAGE_VERSION_NIGHTLY: "1.4.2"
 
 jobs:
-  validate-and-build:
-    name: Validate version and build Python artifact
+  preflight-checks:
+    name: Run tests and linting before release
     runs-on: ubuntu-latest
     outputs:
-      version: ${{ inputs.version }}
-      is_prerelease: ${{ steps.validate.outputs.is_prerelease }}
-      base_image_version: ${{ steps.validate.outputs.base_image_version }}
       branch: ${{ steps.branch.outputs.branch }}
     steps:
       - name: Determine branch to use
@@ -60,9 +57,32 @@ jobs:
             echo "Using dev branch for $CHANNEL release"
           fi
 
-      - uses: actions/checkout@v5
+      - name: Trigger test workflow
+        uses: convictional/trigger-workflow-and-wait@v1.6.5
         with:
+          owner: ${{ github.repository_owner }}
+          repo: server
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          workflow_file_name: test.yml
           ref: ${{ steps.branch.outputs.branch }}
+          wait_interval: 10
+          propagate_failure: true
+          trigger_workflow: true
+          wait_workflow: true
+
+  validate-and-build:
+    name: Validate version and build Python artifact
+    runs-on: ubuntu-latest
+    needs: preflight-checks
+    outputs:
+      version: ${{ inputs.version }}
+      is_prerelease: ${{ steps.validate.outputs.is_prerelease }}
+      base_image_version: ${{ steps.validate.outputs.base_image_version }}
+      branch: ${{ needs.preflight-checks.outputs.branch }}
+    steps:
+      - uses: actions/checkout@v5
+        with:
+          ref: ${{ needs.preflight-checks.outputs.branch }}
           fetch-depth: 0
 
       - name: Validate version number format