Skip to content

Update swagger-ui to v5.6.2 (#85) #199

Update swagger-ui to v5.6.2 (#85)

Update swagger-ui to v5.6.2 (#85) #199

Workflow file for this run

name: Lint
on:
pull_request:
types: [opened, synchronize, reopened]
push:
workflow_dispatch:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: Check with rustfmt
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
override: true
- uses: davidB/rust-cargo-make@v1
- name: Install OpenAPI Generator
uses: actions-rs/cargo@v1
with:
command: make
args: install-openapi
- name: Cache OpenAPI Generator
uses: actions/cache@v3
with:
path: |
~/.local/bin/openapi-generator
key: ${{ runner.os }}-openapi-generator-${{ steps.rust_toolchain.outputs.rustc_hash }}-${{ hashFiles('~/.local/bin/openapi-generator') }}
- name: Generate Cargo.lock
uses: actions-rs/cargo@v1
with: { command: generate-lockfile }
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --tests --examples --all-features
lint-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rust-docs
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1
- name: Check for broken intra-doc links
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "-D warnings"
with:
command: doc
args: --no-deps --all-features --workspace
continue-on-error: true