diff --git a/.github/workflows/lint_test_build.yml b/.github/workflows/lint_test_build.yml index c5848f174e..1df10e2f0d 100644 --- a/.github/workflows/lint_test_build.yml +++ b/.github/workflows/lint_test_build.yml @@ -44,9 +44,16 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 - uses: ./.github/workflows/rafiki/env-setup - run: pnpm --filter openapi build - run: pnpm --filter auth test + - name: AsyncAPI extension + run: | + echo "{\"extends\":[\"spectral:oas\",\"spectral:asyncapi\"]}" >> .spectral.json + - name: Validate Open API specs + run: | + npx @stoplight/spectral-cli lint ./packages/auth/openapi/*.yaml openapi: runs-on: ubuntu-latest