Skip to content

Commit

Permalink
ops: ci action to lint redoc
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Mar 5, 2024
1 parent cc31e84 commit 9c9bffc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test-redoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: lint openapi spec

on:
push:
paths:
- 'server/**'
pull_request:
paths:
- 'server/**'
jobs:
redoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Installing Vaccum"
run: curl -fsSL https://quobix.com/scripts/install_vacuum.sh | sh
- name: "Generating OpenAPI spec"
run: cargo run --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json
- "Vaccum lint"
run: vacuum lint openapi.json


0 comments on commit 9c9bffc

Please sign in to comment.