Improve OpenAPI 3.2.0 compliance #19
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: CI | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| # Ensure we don't need a real DB for basic unit tests | |
| DATABASE_URL: postgres://user:password@localhost/dummy | |
| jobs: | |
| build_and_test: | |
| name: Test & Doc Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| run: | | |
| rustup override set nightly | |
| rustup component add rustfmt | |
| rustup component add clippy | |
| - name: Check Formatting | |
| run: cargo fmt -- --check | |
| - name: Clippy (Linting) | |
| run: cargo clippy --workspace -- -D warnings | |
| - name: Build Workspace | |
| run: cargo build --verbose --workspace | |
| - name: Run Tests | |
| run: cargo test --verbose --workspace | |
| - name: Check Documentation | |
| # This compiles the docs and respects #![deny(missing_docs)] | |
| run: cargo doc --workspace --no-deps --document-private-items | |
| env: | |
| RUSTDOCFLAGS: "-D warnings" |