Skip to content

Merge pull request #554 from 0rzech/yaml-rust2-dependency #1

Merge pull request #554 from 0rzech/yaml-rust2-dependency

Merge pull request #554 from 0rzech/yaml-rust2-dependency #1

Workflow file for this run

on: [push, pull_request]
name: MSRV
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.75.0
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo check
run: cargo check --all-features --examples --tests
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.75.0
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --all-features
fmt:
needs: [check]
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.75.0
components: rustfmt
- name: Run cargo fmt
continue-on-error: ${{ matrix.rust == 'beta' }}
run: cargo fmt --all -- --check
clippy:
needs: [check]
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.75.0
components: clippy
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings