Update mdbook.yml #33
This file contains hidden or 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: lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main] | |
| jobs: | |
| fmt: | |
| name: fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: install rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: git submodule update | |
| run: git submodule update --init --recursive | |
| - name: cargo fmt | |
| run: cargo +nightly fmt --all -- --check | |
| clippy: | |
| name: clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: install rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| components: clippy | |
| - name: cargo clippy | |
| run: cargo clippy --workspace --all-features -- -D warnings | |
| udeps: | |
| name: udeps | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: install rust toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: install machete | |
| run: cargo install cargo-machete | |
| - name: cargo machete | |
| run: cargo machete | |
| codespell: | |
| name: codespell | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Run CodeSpell | |
| uses: codespell-project/actions-codespell@v2.0 | |
| with: | |
| check_hidden: true | |
| check_filenames: true | |
| skip: .git,Cargo.lock,target,CHANGELOG.md,engine,core,macros,examples,bindings,bin | |
| ignore_words_list: crate,Crate,functio |