From 18eb658f89d3774fc70099a2adff4d313762823a Mon Sep 17 00:00:00 2001 From: Kamran Bhatti Date: Sat, 13 Apr 2024 21:56:04 +0100 Subject: [PATCH] Subject: add audit to ci --- .github/workflows/ci.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb92bac..eea4a3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,14 @@ jobs: build_and_test: name: Rust project - latest runs-on: ubuntu-latest - strategy: - matrix: - toolchain: - - stable - - beta - - nightly steps: - - uses: actions/checkout@v3 - - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo build --verbose - - run: cargo test --verbose - + - name: Set up Rust + uses: actions/checkout@v3 + - name: Install cargo-audit + run: cargo install cargo-audit + - name: Build + run: cargo build --verbose + - name: Test + run: cargo test --verbose + - name: Audit + run: cargo audit