Skip to content

Commit db62696

Browse files
committed
feat: GitHub actions integrations for spec
1 parent db06cb3 commit db62696

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/openapi.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: OpenAPI
2+
3+
on:
4+
push:
5+
paths:
6+
- 'spec/**'
7+
8+
jobs:
9+
validate:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out head branch
14+
uses: actions/checkout@v2
15+
with:
16+
path: head
17+
- name: Check out master branch
18+
uses: actions/checkout@v2
19+
with:
20+
ref: master
21+
path: base
22+
- name: Run OpenAPI Diff (from HEAD revision)
23+
uses: mvegter/openapi-diff-action@v0.2.0
24+
with:
25+
head-spec: head/spec/openapi.yaml
26+
base-spec: base/spec/openapi.yaml

0 commit comments

Comments
 (0)