-
Notifications
You must be signed in to change notification settings - Fork 360
47 lines (45 loc) · 1.28 KB
/
openapi-breaking-changes.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
39
40
41
42
43
44
45
46
47
name: lakeFS OpenAPI Compatibility Tests
on:
pull_request:
paths:
- "api/**"
push:
branches:
- master
workflow_dispatch: {}
jobs:
swagger-backward-compatibility:
name: Swagger compatibility tests
runs-on: ubuntu-20.04
steps:
- name: Check-out revised code
uses: actions/checkout@v4
with:
path: 'changed'
sparse-checkout: |
api/swagger.yml
api/authorization.yml
sparse-checkout-cone-mode: false
- name: Check-out base code
uses: actions/checkout@v4
with:
ref: 'master'
path: 'base'
sparse-checkout: |
api/swagger.yml
api/authorization.yml
sparse-checkout-cone-mode: false
- name: Check lakeFS swagger YAML
id: test_swagger_breaking_changes
uses: oasdiff/oasdiff-action/breaking@main
with:
base: base/api/swagger.yml
revision: changed/api/swagger.yml
fail-on-diff: true
- name: Check authorization YAML
id: test_authorization_breaking_changes
uses: oasdiff/oasdiff-action/breaking@main
with:
base: base/api/authorization.yml
revision: changed/api/authorization.yml
fail-on-diff: true