-
-
Notifications
You must be signed in to change notification settings - Fork 180
37 lines (29 loc) · 772 Bytes
/
openapi-ci.yml
File metadata and controls
37 lines (29 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: OpenAPI Continuous Integration
on:
push:
branches: [master]
paths:
- 'openapi/**'
pull_request:
branches: [master]
paths:
- 'openapi/**'
workflow_dispatch:
jobs:
openapi-ci:
name: OpenAPI CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node.js environment
uses: actions/setup-node@v6.0.0
with:
node-version: "18.1"
- name: Setup Prettier
run: npm install -g prettier@2.8.7
- name: Run Prettier lint on project
run: prettier -c openapi/spec/**/*.yaml
- name: Setup Redocly
run: npm install -g @redocly/cli@1.0.0-beta.100
- name: Run Redocly lint
run: redocly lint openapi/spec/openapi.yaml