Skip to content

Commit 9b6cbec

Browse files
committed
Add bors dummy jobs
1 parent 872b8a8 commit 9b6cbec

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

.github/workflows/clippy_bors.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,29 @@ jobs:
266266
cargo install cargo-cache --debug
267267
find ~/.cargo/bin ! -type d -exec strip {} \;
268268
cargo cache --autoclean
269+
270+
# These jobs doesn't actually test anything, but they're only used to tell
271+
# bors the build completed, as there is no practical way to detect when a
272+
# workflow is successful listening to webhooks only.
273+
#
274+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
275+
276+
end-success:
277+
name: bors test finished
278+
if: success()
279+
runs-on: ubuntu-latest
280+
needs: [base, integration]
281+
282+
steps:
283+
- name: Mark the job as successful
284+
run: exit 0
285+
286+
end-failure:
287+
name: bors test finished
288+
if: failure()
289+
runs-on: ubuntu-latest
290+
needs: [base, integration]
291+
292+
steps:
293+
- name: Mark the job as a failure
294+
run: exit 1

.github/workflows/clippy_dev.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,29 @@ jobs:
4242
run: cargo dev update_lints --check
4343
- name: Test fmt
4444
run: cargo dev fmt --check
45+
46+
# These jobs doesn't actually test anything, but they're only used to tell
47+
# bors the build completed, as there is no practical way to detect when a
48+
# workflow is successful listening to webhooks only.
49+
#
50+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
51+
52+
end-success:
53+
name: bors dev test finished
54+
if: success()
55+
runs-on: ubuntu-latest
56+
needs: [clippy_dev]
57+
58+
steps:
59+
- name: Mark the job as successful
60+
run: exit 0
61+
62+
end-failure:
63+
name: bors dev test finished
64+
if: failure()
65+
runs-on: ubuntu-latest
66+
needs: [clippy_dev]
67+
68+
steps:
69+
- name: Mark the job as a failure
70+
run: exit 1

.github/workflows/remark.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,29 @@ jobs:
2222

2323
- name: Check *.md files
2424
run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
25+
26+
# These jobs doesn't actually test anything, but they're only used to tell
27+
# bors the build completed, as there is no practical way to detect when a
28+
# workflow is successful listening to webhooks only.
29+
#
30+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
31+
32+
end-success:
33+
name: bors remark test finished
34+
if: success()
35+
runs-on: ubuntu-latest
36+
needs: [remark]
37+
38+
steps:
39+
- name: Mark the job as successful
40+
run: exit 0
41+
42+
end-failure:
43+
name: bors remark test finished
44+
if: failure()
45+
runs-on: ubuntu-latest
46+
needs: [remark]
47+
48+
steps:
49+
- name: Mark the job as a failure
50+
run: exit 1

0 commit comments

Comments
 (0)