1
Fork 0
mdbook-toc/.github/workflows/tests.yml

37 lines
647 B
YAML
Raw Permalink Normal View History

2021-01-05 19:41:11 +00:00
name: Tests
on: [push, pull_request]
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Build and test
2023-05-15 19:37:00 +00:00
runs-on: ubuntu-latest
2021-01-05 19:41:11 +00:00
steps:
2022-11-01 19:05:26 +00:00
- uses: actions/checkout@v3
2023-05-15 19:37:00 +00:00
- uses: dtolnay/rust-toolchain@stable
2021-01-05 19:41:11 +00:00
- 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:
2022-11-01 19:05:26 +00:00
- uses: actions/checkout@v3
2023-05-15 19:37:00 +00:00
- uses: dtolnay/rust-toolchain@stable
2021-01-05 19:41:11 +00:00
with:
2023-05-15 19:37:47 +00:00
components: rustfmt
2021-01-05 19:41:11 +00:00
- name: fmt
run: cargo fmt --all -- --check
- name: Docs
run: cargo doc --no-deps