Skip to content

Commit

Permalink
easier CI organization for bors
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Feb 22, 2021
1 parent fa69b2a commit c169918
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
on: push
name: Run tests
jobs:
# The `ci-result` job doesn't actually test anything - it just aggregates the
# overall build status for bors, otherwise our bors.toml would need an entry
# for each individual job produced by the job-matrix.
#
# Ref: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149
#
# ALL THE SUBSEQUENT JOBS NEED THEIR `name` ADDED TO THE `needs` SECTION OF THIS JOB!
ci-result:
name: ci result
runs-on: ubuntu-latest
needs:
- geo_types
- geo
- geo_postgis
- coverage
- bench
steps:
- name: Mark the job as a success
if: success()
run: exit 0
- name: Mark the job as a failure
if: "!success()"
run: exit 1
geo_types:
name: geo-types
runs-on: ubuntu-latest
Expand Down
6 changes: 1 addition & 5 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
status = [
"geo-types",
"geo",
"geo-postgis",
"coverage",
"bench"
"ci result",
]

0 comments on commit c169918

Please sign in to comment.