Skip to content

Commit 7111a95

Browse files
committed
Add nightly linting CI jobs for -Zcheck-cfg and advance notice
1 parent f1d2d23 commit 7111a95

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,25 @@ jobs:
172172
# Let's not fail CI for this, it will fail locally often enough, and a crate a little bigger
173173
# than allows is no problem either if it comes to that.
174174
just check-size || true
175+
176+
lint-nightly:
177+
runs-on: ubuntu-latest
178+
continue-on-error: true
179+
steps:
180+
- uses: actions/checkout@v3
181+
- uses: dtolnay/rust-toolchain@master
182+
with:
183+
toolchain: nightly
184+
components: clippy,rustfmt
185+
- uses: extractions/setup-just@v1
186+
- name: Run cargo check -Zcheck-cfg
187+
run: cargo check -Zcheck-cfg
188+
- name: Run cargo clippy
189+
run: just clippy -D warnings
190+
- name: Run cargo doc
191+
run: just doc
192+
- name: Run cargo fmt
193+
run: cargo fmt --all -- --check
175194

176195
cargo-deny:
177196
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)