docs: fix docs and add CI job for checking docs #31
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: CS2KZ API CI | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
components: clippy | |
- run: make lint | |
format: | |
name: RustFmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: nightly | |
components: rustfmt | |
- run: make format | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: moonrepo/setup-rust@v1 | |
- run: make docs | |
spech-check: | |
name: OpenAPI Spec Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: moonrepo/setup-rust@v1 | |
- run: make spec-check |