Skip to content

Commit f95dab8

Browse files
committed
1 parent 680a305 commit f95dab8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/openapi-diff.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: [pull_request]
2+
3+
name: validate-schema-changes
4+
jobs:
5+
detect-breaking-changes:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out HEAD rev
9+
uses: actions/checkout@v2
10+
with:
11+
ref: ${{ github.head_ref }}
12+
path: head
13+
- name: Check out BASE rev
14+
uses: actions/checkout@v2
15+
with:
16+
ref: ${{ github.base_ref }}
17+
path: base
18+
- name: Run OpenAPI Diff (from HEAD rev)
19+
uses: docker://openapitools/openapi-diff:latest
20+
with:
21+
args: --fail-on-incompatible base/schemas/YOUR-SCHEMA.yaml head/schemas/YOUR-SCHEMA.yaml

0 commit comments

Comments
 (0)