Skip to content

Commit

Permalink
Enable cargo audit in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 11, 2023
1 parent af5da66 commit 5c14955
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,39 @@ jobs:
run: |
./scripts/check-usage-of-log-warn.sh
audit:
name: cargo audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set-Up
run: |
sudo apt-get update
sudo apt install -y protobuf-compiler
- name: Configure rustc version
run: |
source ci/env
echo "RUSTC_VERSION=$RUSTC_VERSION" >> $GITHUB_ENV
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUSTC_VERSION }}
target: wasm32-unknown-unknown
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2

- name: Install cargo audit
run: |
cargo install cargo-audit --features=fix
- name: Run cargo audit
run: |
cargo audit --deny warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5c14955

Please sign in to comment.