Skip to content

Commit 6c0f7e9

Browse files
committed
Add nightly linting CI jobs for -Zcheck-cfg and advance notice
1 parent be4de0d commit 6c0f7e9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,29 @@ 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+
if: '!cancelled()'
188+
run: cargo check -Zcheck-cfg
189+
- name: Run cargo clippy
190+
if: '!cancelled()'
191+
run: just clippy -D warnings
192+
- name: Run cargo doc
193+
if: '!cancelled()'
194+
run: just doc
195+
- name: Run cargo fmt
196+
if: '!cancelled()'
197+
run: cargo fmt --all -- --check
175198

176199
cargo-deny:
177200
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)