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 d6721aa
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,38 @@ 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
components: audit
- uses: Swatinem/rust-cache@v2

- name: Run cargo audit
uses: actions-rs/cargo@v1
with:
command: audit
args: --deny warnings

fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit d6721aa

Please sign in to comment.