Generate doc-comments for generated errors #50
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: CI | |
jobs: | |
all-succeeded: | |
name: All Succeeded | |
if: always() | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- lint | |
steps: | |
- name: Check if all jubs succeeded | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- nightly | |
flags: | |
- "" | |
- "--no-default-features" | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
name: Install Rust Toolchain | |
- run: cargo test ${{ matrix.flags }} | |
- run: cargo doc | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout | |
- uses: dtolnay/rust-toolchain@stable | |
name: Install Rust Toolchain | |
with: | |
components: rustfmt, clippy | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy -- -D warnings |