Skip to content

Commit 4390395

Browse files
committed
ci: lint openapi specs
1 parent ea20fa2 commit 4390395

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/lint-openapi.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint OpenAPI Specs
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags-ignore:
8+
- '**'
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install vacuum
17+
run: curl -fsSL https://quobix.com/scripts/install_vacuum.sh | sh
18+
19+
- name: Lint OpenAPI specs
20+
run: |
21+
vacuum lint */openapi.json

OpenAPI.WebApiGenerator.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "root", "root", "{F4FDC271-0
1717
README.md = README.md
1818
.github\workflows\cd.yml = .github\workflows\cd.yml
1919
LICENSE = LICENSE
20+
.github\workflows\lint-openapi.yml = .github\workflows\lint-openapi.yml
2021
EndProjectSection
2122
EndProject
2223
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.OpenApi31", "tests\Example.OpenApi31\Example.OpenApi31.csproj", "{FF8E3B7A-20A5-4702-871C-D8ABC6D82F09}"

0 commit comments

Comments
 (0)