From 700efab5e05f5491c5ef76778b9b8db54af4f6f2 Mon Sep 17 00:00:00 2001 From: MalTeeez <41554385+MalTeeez@users.noreply.github.com> Date: Tue, 14 Jul 2026 00:03:42 +0200 Subject: [PATCH] Enable extended testing workflows on PRs (#1437) --- .github/workflows/build-and-test.yml | 1 + .github/workflows/gate-by-required.yml | 10 ++++++++ .../latest-daily-integration-test.yml | 19 +++++++++++++++ .../workflows/trigger-rebuild-with-deps.yml | 23 +++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 .github/workflows/gate-by-required.yml create mode 100644 .github/workflows/latest-daily-integration-test.yml create mode 100644 .github/workflows/trigger-rebuild-with-deps.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 711cd242c..94a337b1e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,3 +15,4 @@ jobs: with: timeout: 150 horizonqa: true + external-deps-inclusion: true \ No newline at end of file diff --git a/.github/workflows/gate-by-required.yml b/.github/workflows/gate-by-required.yml new file mode 100644 index 000000000..504447938 --- /dev/null +++ b/.github/workflows/gate-by-required.yml @@ -0,0 +1,10 @@ +name: Check state of other required PRs + +on: + pull_request: + branches: [ master, main, release/** ] + +jobs: + check-required-prs: + uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/gate-by-required.yml@master + secrets: inherit diff --git a/.github/workflows/latest-daily-integration-test.yml b/.github/workflows/latest-daily-integration-test.yml new file mode 100644 index 000000000..54bd2c266 --- /dev/null +++ b/.github/workflows/latest-daily-integration-test.yml @@ -0,0 +1,19 @@ +name: Test integration in latest daily + +# Shim to forward the "Build and test" completion to the full pack test wf, whose +# jobs inherit this workflow_run event context (github.event.workflow_run.*) +on: + workflow_run: + workflows: ["Build and test"] + types: [completed] + +permissions: + actions: read + contents: read + statuses: write + +jobs: + latest-daily-integration-test: + if: github.event.workflow_run.event == 'pull_request' + uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/latest-daily-integration-test.yml@master + secrets: inherit diff --git a/.github/workflows/trigger-rebuild-with-deps.yml b/.github/workflows/trigger-rebuild-with-deps.yml new file mode 100644 index 000000000..8659c96b6 --- /dev/null +++ b/.github/workflows/trigger-rebuild-with-deps.yml @@ -0,0 +1,23 @@ +name: Trigger a rebuild with externally required PRs + +# Shim to forward the "Build and test" completion to the rebuild with deps wf, whose +# job inherits this workflow_run event context (github.event.workflow_run.*) +on: + workflow_run: + workflows: ["Build and test"] + types: [completed] + +permissions: + actions: write + contents: read + statuses: write + +jobs: + trigger-rebuild-with-deps: + # Only act on a failed, first-attempt PR build + if: >- + github.event.workflow_run.conclusion == 'failure' + && github.event.workflow_run.event == 'pull_request' + && github.event.workflow_run.run_attempt == 1 + uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/trigger-rebuild-with-deps.yml@master + secrets: inherit