Skip to content

Commit

Permalink
CI: Migrate from Bors to GitHub Merge Queue (#110)
Browse files Browse the repository at this point in the history
The free public instance of Bors has been shut down.
  • Loading branch information
DilumAluthge authored Jan 4, 2025
1 parent a7bce73 commit c8851c1
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: CI

on:
# pull_request: # we use Bors
merge_group: # GitHub Merge Queue
pull_request:
push:
branches:
- master
- staging
- trying
tags: '*'
workflow_dispatch:

Expand All @@ -15,26 +14,38 @@ concurrency:
cancel-in-progress: ${{ (github.ref == 'refs/heads/staging') || (github.ref == 'refs/heads/trying') }}

jobs:
test:
runs-on: ${{ matrix.os }}
integration-tests:
runs-on: ubuntu-latest
timeout-minutes: 60
#
# Because we use GitHub Merge Queue,
# the job name of the integration tests
# can't interpolate any info like
# Julia version number, or operating system.
# This constraint applies only to the integration tests.
#
# Other jobs (like unit tests, and docs)
# can have whatever names they want.
name: Integration
#
# We don't actually want to run integration tests on pull requests,
# because we want to avoid hitting rate limits.
# So, if this is a PR build, mark the integration tests as "skipped".
if: github.event_name != 'pull_request'
strategy:
fail-fast: false
max-parallel: 1
matrix:
version:
- '1'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
# Note: Because we want to use GitHub Merge Queue,
# we can't use a matrix for the integration tests.
# This constraint applies only to the integration tests.
#
# We can still use a matrix for other jobs,
# such as unit tests and docs.
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
version: '1'
- uses: julia-actions/cache@v2
- run: git config --global user.name "Dilum Aluthge"
- run: git config --global user.email "[email protected]"
Expand Down

0 comments on commit c8851c1

Please sign in to comment.