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
This commit is contained in:
Michael Vogt 2024-12-19 10:36:25 +01:00 committed by Ondřej Budai
parent f89342a1bd
commit 119e8fcffa
2 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
types: [ "checks_requested" ]
jobs:

View file

@ -5,6 +5,8 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
types: [ "checks_requested" ]
jobs:
build: