Skip to content

Merge pull request #75 from omjadas/dependabot/github_actions/Swatine… #427

Merge pull request #75 from omjadas/dependabot/github_actions/Swatine…

Merge pull request #75 from omjadas/dependabot/github_actions/Swatine… #427

Workflow file for this run

on: [push, pull_request]
name: Build
permissions:
checks: write
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2.6.1
- run: cargo build --release --all-targets --all-features
- run: cargo test --release --all-features
minimal-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2.6.1
- run: cargo update -Z direct-minimal-versions
- run: cargo build --release --all-targets --all-features
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2.6.1
- run: cargo clippy --all-targets --all-features
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt --all -- --check