Skip to content

Commit

Permalink
CI: Add OpenAPI Diff action
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Jan 22, 2024
1 parent e6e8eac commit ffe4a39
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/openapi-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: OpenAPI Diff
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out head branch
uses: actions/checkout@v2
with:
path: head
- name: Check out master branch
uses: actions/checkout@v2
with:
ref: master
path: base
- name: Run OpenAPI Diff (from HEAD revision)
uses: mvegter/[email protected]
with:
head-spec: head/docs/api/wallet-rpc.yaml
base-spec: base/docs/api/wallet-rpc.yaml
4 changes: 4 additions & 0 deletions docs/api/wallet-rpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ paths:
required: true
schema:
type: string
- test: test
required: true
schema:
type: string
responses:
'200':
$ref: '#/components/responses/Display-200-OK'
Expand Down

0 comments on commit ffe4a39

Please sign in to comment.