CI #267
This file contains 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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '30 3 * * 4' | |
name: CI | |
env: | |
RUST_VERSION: "1.77.2" | |
jobs: | |
test: | |
name: run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: $RUST_VERSION | |
- run: cargo build | |
- run: cargo test --all-features | |
clippy: | |
name: run clippy lints | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: $RUST_VERSION | |
components: clippy | |
- run: cargo clippy --all-features -- -D warnings | |
fmt: | |
name: run rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- run: cargo fmt --all --check | |
audit: | |
name: run cargo audit | |
runs-on: ubuntu-latest | |
container: dbrgn/cargo-audit:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo audit |