Skip to content

Commit

Permalink
feat(ci): add cfg check (paradigmxyz#7965)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Nordbjerg <[email protected]>
  • Loading branch information
emhane and onbjerg authored Apr 29, 2024
1 parent 33f4c3f commit 3754b1e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3754b1e

Please sign in to comment.