Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit aa68111

Browse files
committed
gate bors on clippy
1 parent 7a5de0c commit aa68111

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,8 @@ jobs:
8686
- name: Test
8787
run: bash ./ci.sh
8888

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-
10389
clippy:
104-
name: clippy (ignored by bors)
90+
name: clippy
10591
runs-on: ubuntu-latest
10692
steps:
10793
- uses: actions/checkout@v3
@@ -117,6 +103,20 @@ jobs:
117103
- name: Clippy (cargo-miri)
118104
run: cargo clippy --manifest-path cargo-miri/Cargo.toml --all-targets -- -D warnings
119105

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+
120120
# These jobs doesn't actually test anything, but they're only used to tell
121121
# bors the build completed, as there is no practical way to detect when a
122122
# workflow is successful listening to webhooks only.
@@ -126,15 +126,15 @@ jobs:
126126
end-success:
127127
name: bors build finished
128128
runs-on: ubuntu-latest
129-
needs: [build]
129+
needs: [build, clippy]
130130
if: github.event.pusher.name == 'bors' && success()
131131
steps:
132132
- name: mark the job as a success
133133
run: exit 0
134134
end-failure:
135135
name: bors build finished
136136
runs-on: ubuntu-latest
137-
needs: [build]
137+
needs: [build, clippy]
138138
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
139139
steps:
140140
- name: mark the job as a failure
@@ -144,7 +144,7 @@ jobs:
144144
cron-fail-notify:
145145
name: cronjob failure notification
146146
runs-on: ubuntu-latest
147-
needs: [build]
147+
needs: [build, clippy]
148148
if: github.event_name == 'schedule' && (failure() || cancelled())
149149
steps:
150150
- name: Install zulip-send

0 commit comments

Comments
 (0)