From 345ccc10605b8e5f8026bced538c22a444a79e55 Mon Sep 17 00:00:00 2001 From: Waldir BORBA JUNIOR Date: Tue, 14 Nov 2023 14:26:38 -0300 Subject: [PATCH] chore(fix): audit --- .github/workflows/audit.yaml | 2 +- .github/workflows/ci.yaml | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 5ec702b..b1dcb04 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -1,4 +1,4 @@ -name: Security audit +name: Security Audit on: schedule: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a776fa..1ccb6b9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,12 @@ -name: CI +name: Rust CI on: push: branches: - main pull_request: + branches: + - main jobs: unit_tests: @@ -78,8 +80,8 @@ jobs: # DELTA_BIN=target/${{ matrix.target }}/release/delta # ./tests/test_raw_output_matches_git_on_full_repo_history $DELTA_BIN # ./tests/test_deprecated_options $DELTA_BIN > /dev/null - # - name: Run executable - # run: cargo run --release --target ${{ matrix.target }} -- < /dev/null + - name: Run executable + run: cargo run --release --target ${{ matrix.target }} -- < /dev/null rustfmt: name: Rustfmt @@ -94,6 +96,17 @@ jobs: - name: Check formatting run: cargo fmt --all --check + rustaudit: + name: Rust Audit + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install cargo-audit + run: cargo install cargo-audit + - name: Auditting + run: cargo audit + clippy: name: Clippy runs-on: ubuntu-latest @@ -105,7 +118,7 @@ jobs: with: components: clippy - name: Clippy Check - run: cargo clippy -- -D warnings + run: cargo clippy --verbose -- -D warnings coverage: name: Code coverage