Skip to content

Merge pull request #41 from dotboris/renovate/all-minor-patch #99

Merge pull request #41 from dotboris/renovate/all-minor-patch

Merge pull request #41 from dotboris/renovate/all-minor-patch #99

Workflow file for this run

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