Merge pull request #41 from dotboris/renovate/all-minor-patch #99
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: CI | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
check: | |
name: cargo check | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo check | |
fmt-check: | |
name: cargo fmt --check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal --component rustfmt | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --version | |
- run: cargo fmt --all -- --check --color=always | |
test-rust: | |
name: cargo test | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build | |
- run: cargo test | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup toolchain install stable --profile minimal --component clippy | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo clippy --version | |
- run: cargo clippy --all-targets --all-features -- -D warnings |