Repository navigation
Merge pull request #4 from Ym0T/dependabot/cargo/zip-9.1.3 #15
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| schedule: | |
| # Weekly, to catch new advisories for existing dependencies. | |
| - cron: "17 4 * * 1" | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust | |
| run: | | |
| rustup toolchain install stable --profile minimal --component clippy,rustfmt | |
| rustup default stable | |
| - run: cargo fmt --check | |
| - run: cargo clippy --locked --all-targets -- -D warnings | |
| - run: cargo test --locked | |
| msrv: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust 1.88 | |
| run: | | |
| rustup toolchain install 1.88 --profile minimal | |
| rustup default 1.88 | |
| - run: cargo check --locked --all-targets | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install cargo-audit | |
| run: cargo install cargo-audit --locked --version 0.22.2 | |
| - run: cargo audit --deny warnings |