added clippy installation
This commit is contained in:
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@@ -82,6 +82,10 @@ jobs:
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install Rust Clippy
|
||||
working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
run: rustup component add clippy
|
||||
|
||||
- name: Run tests
|
||||
working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
run: cargo test --verbose --no-fail-fast
|
||||
@@ -90,25 +94,25 @@ jobs:
|
||||
working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
audit:
|
||||
name: Security Audit
|
||||
needs: [detect-project, setup-rust]
|
||||
if: ${{ !failure() && !cancelled() }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install cargo-audit
|
||||
run: cargo install cargo-audit
|
||||
|
||||
- name: Audit dependencies
|
||||
working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
run: cargo audit --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2020-0159
|
||||
# audit:
|
||||
# name: Security Audit
|
||||
# needs: [detect-project, setup-rust]
|
||||
# if: ${{ !failure() && !cancelled() }}
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
#
|
||||
# - name: Install Rust
|
||||
# uses: dtolnay/rust-toolchain@stable
|
||||
# with:
|
||||
# toolchain: stable
|
||||
#
|
||||
# - name: Install cargo-audit
|
||||
# run: cargo install cargo-audit
|
||||
#
|
||||
# - name: Audit dependencies
|
||||
# working-directory: ${{ needs.detect-project.outputs.project-dir }}
|
||||
# run: cargo audit --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2020-0159
|
||||
|
||||
build:
|
||||
name: Build (${{ matrix.target }})
|
||||
|
Reference in New Issue
Block a user