Skip to content

Commit 7d5a30c

Browse files
kpcyrdklittlepage
authored andcommitted
Attempt to fix bors
1 parent 52c8df3 commit 7d5a30c

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

.github/bors.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
status = [
2-
"test (ubuntu-latest, stable)",
3-
"test (macos-latest, stable)",
4-
"test (windows-latest, stable)",
5-
"rustfmt",
6-
"clippy",
7-
]
1+
status = ["bors build finished"]
82
delete_merged_branches = true

.github/workflows/default.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,33 @@ jobs:
7070
with:
7171
command: clippy
7272
args: --all --lib --tests -- --deny warnings
73+
74+
# These jobs doesn't actually test anything, but they're only used to tell
75+
# bors the build completed, as there is no practical way to detect when a
76+
# workflow is successful listening to webhooks only.
77+
#
78+
# ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
79+
80+
end-success:
81+
name: bors build finished
82+
if: success()
83+
runs-on: ubuntu-latest
84+
needs:
85+
- test
86+
- fmt
87+
- clippy
88+
steps:
89+
- name: Mark the job as successful
90+
run: exit 0
91+
92+
end-failure:
93+
name: bors build finished
94+
if: "!success()"
95+
runs-on: ubuntu-latest
96+
needs:
97+
- test
98+
- fmt
99+
- clippy
100+
steps:
101+
- name: Mark the job as a failure
102+
run: exit 1

0 commit comments

Comments
 (0)