Skip to content

Commit

Permalink
CI: Run CI on merge_group events, and add a finalize job (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed May 26, 2024
1 parent 5127219 commit 3672cd3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ on:
branches: [master]
tags: ["*"]
pull_request:
merge_group: # GitHub Merge Queue
jobs:
finalize:
timeout-minutes: 10
needs: [test, docs]
if: always() # Important: Make sure that this job runs even if the tests fail.
runs-on: ubuntu-latest # GitHub-hosted runners
steps:
- run: |
echo test: ${{ needs.test.result }}
echo docs: ${{ needs.docs.result }}
- run: exit 1
# Every line except the last line must end with `||`.
# The last line must NOT end with `||`.
if: |
(needs.test.result != 'success') ||
(needs.docs.result != 'success')
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 3672cd3

Please sign in to comment.