Skip to content

Commit

Permalink
Run tests on merge group (#1339)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g authored Oct 15, 2024
1 parent 4dc9578 commit 305760a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ on:
push:
branches:
- main

pull_request:
branches:
- "*"

merge_group:
types: [checks_requested]

workflow_dispatch:

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/require-reviewers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- review_request_removed
- auto_merge_enabled

merge_group:
types: [checks_requested]

# Allow calling sharing this workflow with other repositories.
workflow_call:

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ on:
push:
branches:
- main

pull_request:
branches:
- "*"

merge_group:
types: [checks_requested]

name: Test
jobs:
test:
Expand Down Expand Up @@ -33,7 +37,9 @@ jobs:

- name: Test
run: go test ./...

- name: Check Go Formatting
run: go fmt ./... && git diff --exit-code

- name: Check Go Mod Tidyness
run: go mod tidy && git diff --exit-code

0 comments on commit 305760a

Please sign in to comment.