diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c6c925f..fc8e40ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,3 +96,12 @@ jobs: run: docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu - name: Check documentation run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi -e RUSTDOCFLAGS="-Dwarnings" ubuntucontainer cargo doc --document-private-items --no-deps + + # Check that there are no Clippy lint errors. + clippy: + name: Check Clippy lints + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check Clippy lints + run: cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo diff --git a/tss-esapi/tests/all-fedora.sh b/tss-esapi/tests/all-fedora.sh index 01bdba2a..39ed90e9 100755 --- a/tss-esapi/tests/all-fedora.sh +++ b/tss-esapi/tests/all-fedora.sh @@ -33,11 +33,6 @@ tpm2-abrmd \ --session \ --flush-all & -################## -# Execute clippy # -################## -cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo - ################### # Build the crate # ################### diff --git a/tss-esapi/tests/all-ubuntu.sh b/tss-esapi/tests/all-ubuntu.sh index 9e65702e..5dbb2d6f 100755 --- a/tss-esapi/tests/all-ubuntu.sh +++ b/tss-esapi/tests/all-ubuntu.sh @@ -36,11 +36,6 @@ tpm_server & sleep 5 tpm2_startup -c -T mssim -################## -# Execute clippy # -################## -cargo clippy --all-targets --all-features -- -D clippy::all -D clippy::cargo - ################### # Build the crate # ###################