diff --git a/.github/workflows/test-redoc.yml b/.github/workflows/test-redoc.yml new file mode 100644 index 0000000000..0c897a150f --- /dev/null +++ b/.github/workflows/test-redoc.yml @@ -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 + +