Skip to content

Commit

Permalink
chore: add validation for the OpenAPI specs to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoblersTune committed Nov 4, 2022
1 parent 8898075 commit 65bf293
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lint_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65bf293

Please sign in to comment.