update deny.toml #96
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: push | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: cargo fmt | |
| run: cargo fmt --all -- --check | |
| clippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: cache rust deps | |
| uses: Swatinem/rust-cache@v2 | |
| - name: cargo clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| machete: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: cache rust deps | |
| uses: Swatinem/rust-cache@v2 | |
| - name: install cargo-machete | |
| run: cargo install cargo-machete | |
| - name: cargo machete | |
| run: cargo machete | |
| deny: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: cache rust deps | |
| uses: Swatinem/rust-cache@v2 | |
| - name: install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: fetch deps | |
| run: cargo fetch | |
| - name: build tests | |
| run: cargo test --no-run | |
| - name: run tests | |
| run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info | |
| - name: upload to codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: lcov.info |