1
Fork 0
mdbook-toc/.github/workflows/tests.yml
2023-05-15 21:37:47 +02:00

37 lines
647 B
YAML

name: Tests
on: [push, pull_request]
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all
check_fmt_and_docs:
name: Checking fmt and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: fmt
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc --no-deps