Skip to content

feat: body add one/all/ref validator #13

feat: body add one/all/ref validator

feat: body add one/all/ref validator #13

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
format:
strategy:
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
name: cargo fmt
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rustfmt
- name: Run fmt
run: cargo fmt --manifest-path ./Cargo.toml --all -- --check --unstable-features
cargo-clippy:
strategy:
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
name: cargo clippy
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --manifest-path ./Cargo.toml --all-features --workspace -- -D warnings