-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 972 Bytes
/
lint.yaml
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
name: 'OpenAPI lint'
on:
workflow_dispatch:
pull_request:
branches:
- 1.0*
permissions:
contents: read
jobs:
build:
name: "Redocly Lint"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint
uses: actions/setup-node@v4
with:
node-version: 20
- run: >-
npx --yes @redocly/cli bundle ./docs/_spec/openapi-split.yaml -o ./docs/openapi-1.0.yaml &&
npx @redocly/cli lint ./docs/openapi-1.0.yaml
- name: Redocly API Stats
id: api_stats
run: npx @redocly/cli stats ./docs/openapi-1.0.yaml > stats.txt 2>&1
- name: Comment PR with API Stats
#if: ${{ github.event.pull_request }}
if: ${{ false }}
uses: thollander/[email protected]
with:
comment_tag: api-stats
filePath: stats.txt