feat(ci): add cfg check (#7965)

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
This commit is contained in:
Emilia Hane
2024-04-29 21:22:01 +02:00
committed by GitHub
parent 33f4c3fa91
commit 3754b1e183
2 changed files with 17 additions and 2 deletions

View File

@ -126,11 +126,23 @@ jobs:
with:
cmd: jq empty etc/grafana/dashboards/overview.json
check-cfg:
name: check-cfg
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo +nightly -Zcheck-cfg c
lint-success:
name: lint success
runs-on: ubuntu-latest
if: always()
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana]
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana, check-cfg]
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed

View File

@ -414,8 +414,11 @@ test:
make test-doc && \
make test-other-targets
cfg-check:
cargo +nightly -Zcheck-cfg c
pr:
make fmt && \
make cfg-check && \
make lint && \
make docs && \
make test