Skip to content

๐Ÿฉน ์ฝ”๋“œ ์ƒ์„ฑ์‹œ ์—๋Ÿฌ ์ˆ˜์ • ๋ฐ validation gitaction ์ถ”๊ฐ€ #7

๐Ÿฉน ์ฝ”๋“œ ์ƒ์„ฑ์‹œ ์—๋Ÿฌ ์ˆ˜์ • ๋ฐ validation gitaction ์ถ”๊ฐ€

๐Ÿฉน ์ฝ”๋“œ ์ƒ์„ฑ์‹œ ์—๋Ÿฌ ์ˆ˜์ • ๋ฐ validation gitaction ์ถ”๊ฐ€ #7

Workflow file for this run

name: OpenAPI Validation
on:
push:
paths:
- 'openapi.yaml'
pull_request:
paths:
- 'openapi.yaml'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Install OpenAPI validator
run: npm install -g @apidevtools/swagger-cli
- name: Validate OpenAPI specification
run: swagger-cli validate openapi.yaml
- name: Run Spectral
uses: stoplightio/spectral-action@latest
with:
file_glob: 'openapi.yaml'
spectral_ruleset: .spectral.yaml