Commit 4c906e0 1 parent a78ab81 commit 4c906e0 Copy full SHA for 4c906e0
File tree 4 files changed +32
-16
lines changed
4 files changed +32
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- on :
3
- push :
4
- branches :
5
- - staging
6
- - trying
2
+ on : merge_group
7
3
8
4
jobs :
9
5
48
44
with :
49
45
components : rustfmt
50
46
- run : cargo fmt --all --check
47
+
48
+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
49
+ # protection, rather than having to add each job separately.
50
+ success :
51
+ name : Success
52
+ runs-on : ubuntu-latest
53
+ needs : [test, no_std, fmt]
54
+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
55
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
56
+ # dependencies fails.
57
+ if : always() # make sure this is never "skipped"
58
+ steps :
59
+ # Manually check the status of all dependencies. `if: failure()` does not work.
60
+ - name : check if any dependency failed
61
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change 27
27
with :
28
28
components : rustfmt
29
29
- run : cargo fmt --all --check
30
+
31
+ # One job that "summarizes" the success state of this pipeline. This can then be added to branch
32
+ # protection, rather than having to add each job separately.
33
+ success :
34
+ name : Success
35
+ runs-on : ubuntu-latest
36
+ needs : [test, fmt]
37
+ # Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
38
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
39
+ # dependencies fails.
40
+ if : always() # make sure this is never "skipped"
41
+ steps :
42
+ # Manually check the status of all dependencies. `if: failure()` does not work.
43
+ - name : check if any dependency failed
44
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ name = "num-complex"
10
10
repository = " https://github.com/rust-num/num-complex"
11
11
version = " 0.4.4"
12
12
readme = " README.md"
13
- exclude = [" /bors.toml " , " / ci/*" , " /.github/*" ]
13
+ exclude = [" /ci/*" , " /.github/*" ]
14
14
edition = " 2018"
15
15
16
16
[package .metadata .docs .rs ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments