Skip to content

Commit

Permalink
Merge #1640: CI: Add OpenAPI Diff action
Browse files Browse the repository at this point in the history
4d15a2c CI: Add OpenAPI Diff action (Kristaps Kaupe)

Pull request description:

  Found this randomly, seems useful. Will validate OpenAPI spec changes.

  https://github.com/marketplace/actions/openapi-diff

ACKs for top commit:
  roshii:
    utACK 4d15a2c

Tree-SHA512: 3f342f52d3cb4662e1d8e738a62efc776f17d7ed0221c0d0dff6ac2a29ed20619c0b1ff34d947d55a28a48ab952184bdc28f30e2c7a77a89ec52814f1fe65c4f
  • Loading branch information
kristapsk committed Jan 23, 2024
2 parents 8319870 + 4d15a2c commit 2b960df
Showing 1 changed file with 20 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/openapi-diff-action@v0.23.5
with:
head-spec: head/docs/api/wallet-rpc.yaml
base-spec: base/docs/api/wallet-rpc.yaml

0 comments on commit 2b960df

Please sign in to comment.