From 119e8fcffac3f52f4ced673e2b1dc43e0989d646 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 19 Dec 2024 10:36:25 +0100 Subject: [PATCH] workflow: run tests as part of the merge group This commit adds the missing `merge_group` to the pytest and go test workflows. Note that I added `types: [ "checks_requested" ]` (just like we have for the container.yaml) but I'm not actually sure about it, the GH docs are a bit unclear to me here, it seems they suggest to keep this generic but then the example explicitly uses `type` (I'm probably overthinking this fwiw). [1] https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#merge_group --- .github/workflows/go.yaml | 2 ++ .github/workflows/pytest.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f9ebc43..f43ea60 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -8,6 +8,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + merge_group: + types: [ "checks_requested" ] jobs: diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 6a7781c..5af8e5a 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + merge_group: + types: [ "checks_requested" ] jobs: build: