Skip to content

Add a description field #24

Add a description field

Add a description field #24

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
merge_group:
types: [checks_requested]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
version: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: Set toolchain
run: |
rustup set profile minimal
rustup override set ${{ matrix.version }}
- name: Cargo test
if: matrix.version != 'nightly'
run: cargo test --all
- name: Cargo doc
if: matrix.version == 'nightly'
run: cargo doc
msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.68
- run: cargo check --lib --all-features
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rustfmt
run: rustup component add rustfmt
- name: Check Format
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: cargo clippy --all-features --all-targets -- -D warnings
# If this fails, consider changing your text or adding something to .typos.toml.
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/typos@v1.29.4
build_result:
name: Result
runs-on: ubuntu-latest
needs:
- ci
- format
- clippy
- msrv
- typos
steps:
- name: Success
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: exit 0
- name: Failure
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: exit 1