-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/AddCancellationRequestedState' of github.com:Ma…
…ttMcL4475/task-execution-schemas into MattMcL4475-feature/AddCancellationRequestedState
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
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,51 @@ | ||
name: Lint and validate OpenAPI specs | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
|
||
lint: | ||
name: Lint OpenAPI definition | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out head branch | ||
uses: actions/checkout@v2 | ||
- name: Run OpenAPI Lint Action | ||
uses: nwestfall/openapi-action@v1.0.2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: openapi/task_execution_service.openapi.yaml | ||
|
||
diff: | ||
name: Show OpenAPI differences relative to target branch | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'pull_request' }} | ||
steps: | ||
- name: Check out head branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
path: head | ||
- name: Check out base branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.base_ref }} | ||
path: base | ||
- name: Run OpenAPI Diff Action | ||
uses: mvegter/openapi-diff-action@v0.23.5 | ||
with: | ||
head-spec: head/openapi/task_execution_service.openapi.yaml | ||
base-spec: base/openapi/task_execution_service.openapi.yaml | ||
|
||
validate: | ||
name: Validate OpenAPI definition | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out head branch | ||
uses: actions/checkout@v2 | ||
- name: Run OpenAPI Validate Action | ||
uses: char0n/swagger-editor-validate@v1 | ||
with: | ||
definition-file: openapi/task_execution_service.openapi.yaml |
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