Build and test #54
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: Build and test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
full_ci: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
toolchain: [ stable, 1.67.0 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup rust version | |
run: rustup default ${{ matrix.toolchain }} | |
- name: Clippy fmt | |
run: | | |
cargo fmt -- --check | |
if: ${{ matrix.type == 'stable' }} | |
- name: Cargo check | |
run: | | |
cargo check | |
cargo check --all-features | |
- name: Cargo check examples | |
run: | | |
cargo check --examples | |
cargo check --examples --all-features | |
- name: Clippy pedantic | |
run: | | |
cargo clippy -- -W clippy::pedantic -A clippy::module-name-repetitions -A clippy::missing-errors-doc -A clippy::inline_always -A clippy::wildcard-imports | |
if: ${{ matrix.type == 'stable' }} | |
- name: Test | |
run: | | |
cargo test --no-fail-fast -- --nocapture | |
cargo test --all-features --no-fail-fast -- --nocapture | |
- name: Doc | |
run: | | |
cargo doc |