File tree 1 file changed +24
-5
lines changed
1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- on : [push, pull_request]
2
+ on :
3
+ pull_request :
4
+ merge_group :
5
+
6
+ env :
7
+ MDBOOK_VERSION : 0.4.40
3
8
4
9
jobs :
5
10
test :
6
11
name : Test
7
12
runs-on : ubuntu-latest
8
13
steps :
9
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
10
15
- name : Update rustup
11
16
run : rustup self update
12
17
- name : Install Rust
15
20
rustup toolchain install nightly -c rust-docs
16
21
rustup default nightly
17
22
- name : Install mdbook
18
- env :
19
- MDBOOK_VER : v0.4.3
20
23
run : |
21
24
mkdir bin
22
- curl -sSL https://github.com/rust-lang/mdBook/releases/download/${{ env.MDBOOK_VER }} /mdbook-${{ env.MDBOOK_VER } }-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
25
+ curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION} /mdbook-v${MDBOOK_VERSION }-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
23
26
echo "$(pwd)/bin" >> $GITHUB_PATH
24
27
- name : Report versions
25
28
run : |
33
36
curl -sSLo linkcheck.sh \
34
37
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
35
38
sh linkcheck.sh --all nomicon
39
+
40
+ # The success job is here to consolidate the total success/failure state of
41
+ # all other jobs. This job is then included in the GitHub branch protection
42
+ # rule which prevents merges unless all other jobs are passing. This makes
43
+ # it easier to manage the list of jobs via this yml file and to prevent
44
+ # accidentally adding new jobs without also updating the branch protections.
45
+ success :
46
+ name : Success gate
47
+ if : always()
48
+ needs :
49
+ - test
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
53
+ - name : Done
54
+ run : exit 0
You can’t perform that action at this time.
0 commit comments