-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenAPI breaking changes CI tests (#6612)
- Loading branch information
1 parent
b2a4e50
commit ed8ace8
Showing
2 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters