Skip to content

Commit 3672cd3

Browse files
authored
CI: Run CI on merge_group events, and add a finalize job (#921)
1 parent 5127219 commit 3672cd3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@ on:
44
branches: [master]
55
tags: ["*"]
66
pull_request:
7+
merge_group: # GitHub Merge Queue
78
jobs:
9+
finalize:
10+
timeout-minutes: 10
11+
needs: [test, docs]
12+
if: always() # Important: Make sure that this job runs even if the tests fail.
13+
runs-on: ubuntu-latest # GitHub-hosted runners
14+
steps:
15+
- run: |
16+
echo test: ${{ needs.test.result }}
17+
echo docs: ${{ needs.docs.result }}
18+
- run: exit 1
19+
# Every line except the last line must end with `||`.
20+
# The last line must NOT end with `||`.
21+
if: |
22+
(needs.test.result != 'success') ||
23+
(needs.docs.result != 'success')
824
test:
925
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1026
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)