.github/workflows/ci: add check to runc shim

The runc shim, like the containerd-shim, has a 'sync' feature that is not checked by the workspace.
Thus we need to add that individually to the CI to get full coverage

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
This commit is contained in:
Jiaxiao Zhou (Mossaka) 2024-11-16 13:33:33 -07:00 committed by Maksym Pavlenko
parent 474db59c81
commit 3bb4e14fe5
1 changed files with 9 additions and 6 deletions

View File

@ -22,18 +22,21 @@ jobs:
- run: ./scripts/install-protobuf.sh - run: ./scripts/install-protobuf.sh
shell: bash shell: bash
- run: cargo check --examples --tests --all-targets
- run: cargo check --examples --tests --all-targets --all-features
- run: rustup toolchain install nightly --component rustfmt - run: rustup toolchain install nightly --component rustfmt
- run: cargo +nightly fmt --all -- --check --files-with-diff - run: cargo +nightly fmt --all -- --check --files-with-diff
# the "runc" and "containerd-shim" crates have `sync` code that is not covered by the workspace
- run: cargo check -p runc --all-targets
- run: cargo clippy -p runc --all-targets -- -D warnings
- run: cargo check -p containerd-shim --all-targets
- run: cargo clippy -p containerd-shim --all-targets -- -D warnings
# check the workspace
- run: cargo check --examples --tests --all-targets
- run: cargo check --examples --tests --all-targets --all-features
- run: cargo clippy --all-targets -- -D warnings - run: cargo clippy --all-targets -- -D warnings
- run: cargo clippy --all-targets --all-features -- -D warnings - run: cargo clippy --all-targets --all-features -- -D warnings
# the shim has sync code that is not covered when running with --all-features
- run: cargo clippy -p containerd-shim --all-targets -- -D warnings
- run: cargo doc --no-deps --features docs - run: cargo doc --no-deps --features docs
env: env:
RUSTDOCFLAGS: -Dwarnings RUSTDOCFLAGS: -Dwarnings