OpenAPI Canary #873
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
--- | |
name: OpenAPI Canary | |
on: | |
schedule: | |
# 2.30 UTC | |
- cron: '30 2 * * *' | |
jobs: | |
canary: | |
name: Check for changed spec files | |
runs-on: ubuntu-latest | |
container: openapitools/openapi-diff | |
steps: | |
- name: Checkout development branch | |
uses: actions/checkout@v3 | |
with: | |
path: head | |
- name: Checkout master branch | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
path: base | |
# --fail-on-incompatible is also possible | |
- name: Run OpenAPI Diff for external journal API | |
run: | | |
java -jar /app/openapi-diff.jar --fail-on-changed base/sormas-rest/swagger.yaml \ | |
head/sormas-rest/swagger.yaml | |