Skip to content

Str 774 Docs, tests and refactors #21

Str 774 Docs, tests and refactors

Str 774 Docs, tests and refactors #21

Workflow file for this run

name: Docs
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
docs:
name: Generate docs
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-11-01
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install sqlx-cli
run: cargo install sqlx-cli --locked
- name: Run db migrations
run: make migrate
- name: Check docs leaving the dependencies out
run: cargo doc --workspace --no-deps
env:
RUSTDOCFLAGS: --show-type-layout --enable-index-page -Zunstable-options -A rustdoc::private-doc-tests -D warnings
DATABASE_URL: sqlite://./operator.db
SKIP_GUEST_BUILD: 1