diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fd7d403..664aec9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,9 +19,7 @@ jobs: uses: actions/cache@v2 with: path: | - target/**/build - target/**/deps - target/**/incremental + target ~/.cargo/ key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} restore-keys: | @@ -30,6 +28,10 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Run audit + uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} build-release: