Sanity #3
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
name: Sanity | |
on: | |
schedule: | |
- cron: 0 0 1 * * | |
workflow_dispatch: | |
jobs: | |
sanity: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: rustup update | |
run: rustup update | |
- name: cargo check | |
run: cargo check --all-features | |
- name: cargo build | |
run: cargo build --all-features | |
- name: cargo test | |
run: cargo test --all-features | |
- name: cargo fmt | |
run: cargo fmt --all --check | |
- name: cargo clippy | |
run: cargo clippy --tests --all-features -- -D warnings | |
- name: install cargo-outdated | |
run: cargo install cargo-outdated | |
- name: cargo-outdated | |
run: cargo outdated --exit-code 1 |