-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Migrate from Bors to GitHub Merge Queue (#110)
The free public instance of Bors has been shut down.
- Loading branch information
1 parent
a7bce73
commit c8851c1
Showing
1 changed file
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
||
|
@@ -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]" | ||
|