From 3e82166da0a33fb0a49bdd427debf759068531a3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 21 Sep 2026 12:40:54 +0200 Subject: [PATCH] ci(realtime): enable manual runs and config-triggered builds Add workflow dispatch support and rebuild triggers for config/constants.php, with test coverage for both workflow changes. --- .github/workflows/coolify-realtime.yml | 2 ++ tests/Unit/ProductionImageWorkflowTest.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/coolify-realtime.yml b/.github/workflows/coolify-realtime.yml index 881c44aab7..495e6a4637 100644 --- a/.github/workflows/coolify-realtime.yml +++ b/.github/workflows/coolify-realtime.yml @@ -1,10 +1,12 @@ name: Coolify Realtime on: + workflow_dispatch: push: branches: [ "main" ] paths: - .github/workflows/coolify-realtime.yml + - config/constants.php - docker/coolify-realtime/** permissions: diff --git a/tests/Unit/ProductionImageWorkflowTest.php b/tests/Unit/ProductionImageWorkflowTest.php index 4d32f604fe..2c29fe55be 100644 --- a/tests/Unit/ProductionImageWorkflowTest.php +++ b/tests/Unit/ProductionImageWorkflowTest.php @@ -94,6 +94,8 @@ it('prevents the stable realtime workflow from publishing an existing version', $workflow = file_get_contents(dirname(__DIR__, 2).'/.github/workflows/coolify-realtime.yml'); expect($workflow) + ->toContain('workflow_dispatch:') + ->toContain('- config/constants.php') ->toContain('check-version:') ->toContain('needs: check-version') ->toContain('php bootstrap/getRealtimeVersion.php')