-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1012 Bytes
/
openapi.yml
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
38
39
40
41
name: OpenAPI
on:
pull_request:
paths: [ openapi/** ]
push:
branches: [ main ]
tags: [ "*" ]
permissions:
contents: read
jobs:
lint:
name: Lint OpenAPI Spec
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install Redocly CLI
run: npm install --global @redocly/cli
- name: Lint OpenAPI Spec
run: make lint-openapi
test:
name: Build OpenAPI Spec
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install Redocly CLI
run: npm install --global @redocly/cli
- name: Lint OpenAPI Spec
run: make openapi