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 e588bfb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test-redoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: lint openapi spec

on:
pull_request:
paths:
- 'server/**'
push:
paths:
- 'server/**'
jobs:
redoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Vaccum
run: npm install -g @quobix/vacuum
- name: Generating OpenAPI spec
run: cargo run --features runtime-env --manifest-path server/Cargo.toml --bin redoc_ci > openapi.json
- name: Vaccum lint
run: vacuum lint openapi.json

0 comments on commit e588bfb

Please sign in to comment.