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