86
86
- name : Test
87
87
run : bash ./ci.sh
88
88
89
- fmt :
90
- name : formatting (ignored by bors)
91
- runs-on : ubuntu-latest
92
- steps :
93
- - uses : actions/checkout@v3
94
- - name : Install latest nightly
95
- run : |
96
- rustup toolchain install nightly --component rustfmt
97
- rustup override set nightly
98
- - name : Formatting (miri, ui_test)
99
- run : cargo fmt --all --check
100
- - name : Formatting (cargo-miri)
101
- run : cargo fmt --manifest-path cargo-miri/Cargo.toml --all --check
102
-
103
89
clippy :
104
- name : clippy (ignored by bors)
90
+ name : clippy
105
91
runs-on : ubuntu-latest
106
92
steps :
107
93
- uses : actions/checkout@v3
@@ -117,6 +103,20 @@ jobs:
117
103
- name : Clippy (cargo-miri)
118
104
run : cargo clippy --manifest-path cargo-miri/Cargo.toml --all-targets -- -D warnings
119
105
106
+ fmt :
107
+ name : formatting (ignored by bors)
108
+ runs-on : ubuntu-latest
109
+ steps :
110
+ - uses : actions/checkout@v3
111
+ - name : Install latest nightly
112
+ run : |
113
+ rustup toolchain install nightly --component rustfmt
114
+ rustup override set nightly
115
+ - name : Formatting (miri, ui_test)
116
+ run : cargo fmt --all --check
117
+ - name : Formatting (cargo-miri)
118
+ run : cargo fmt --manifest-path cargo-miri/Cargo.toml --all --check
119
+
120
120
# These jobs doesn't actually test anything, but they're only used to tell
121
121
# bors the build completed, as there is no practical way to detect when a
122
122
# workflow is successful listening to webhooks only.
@@ -126,15 +126,15 @@ jobs:
126
126
end-success :
127
127
name : bors build finished
128
128
runs-on : ubuntu-latest
129
- needs : [build]
129
+ needs : [build, clippy ]
130
130
if : github.event.pusher.name == 'bors' && success()
131
131
steps :
132
132
- name : mark the job as a success
133
133
run : exit 0
134
134
end-failure :
135
135
name : bors build finished
136
136
runs-on : ubuntu-latest
137
- needs : [build]
137
+ needs : [build, clippy ]
138
138
if : github.event.pusher.name == 'bors' && (failure() || cancelled())
139
139
steps :
140
140
- name : mark the job as a failure
@@ -144,7 +144,7 @@ jobs:
144
144
cron-fail-notify :
145
145
name : cronjob failure notification
146
146
runs-on : ubuntu-latest
147
- needs : [build]
147
+ needs : [build, clippy ]
148
148
if : github.event_name == 'schedule' && (failure() || cancelled())
149
149
steps :
150
150
- name : Install zulip-send
0 commit comments