remove intradoc to std #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clippy and Tests | |
on: | |
push: | |
branches: | |
- main | |
- next | |
pull_request: | |
jobs: | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Run clippy | |
run: cargo clippy --all-targets | |
- name: Check if README is up to date | |
run: | | |
cargo install cargo-rdme | |
cargo rdme --check --no-fail-on-warnings | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Run tests on default features | |
run: cargo nextest run --no-default-features --no-fail-fast --failure-output=immediate-final | |
- name: Run tests with sync feature | |
run: > | |
cargo nextest run | |
--features sync | |
--filter-expr 'test(util::sync::tests::share_gradual_taiko)' | |
--filter-expr 'test(taiko::difficulty::gradual::tests::next_and_nth)' | |
--no-fail-fast --failure-output=immediate-final | |
- name: Run doctests | |
run: cargo test --no-default-features --doc |