Skip to content

Commit c62ee28

Browse files
committed
Changed OpenAPI Canary to fail on incompatible
1 parent c44ed45 commit c62ee28

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/openapi_canary.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22
name: OpenAPI Canary
33

44
on:
5-
workflow_dispatch:
6-
inputs:
7-
reason:
8-
description: 'Reason for manual run'
9-
required: false
10-
default: 'Testing on specific branch'
11-
# Disabled until fixing the issue with the diff tool
12-
# schedule:
5+
schedule:
136
# 2.30 UTC
14-
# - cron: '30 2 * * *'
7+
- cron: '30 2 * * *'
158

169
jobs:
1710
canary:
@@ -31,9 +24,9 @@ jobs:
3124
ref: master
3225
path: base
3326

34-
# --fail-on-incompatible is also possible
27+
# --fail-on-changed is also possible (fails on any change, including backward-compatible)
3528
- name: Run OpenAPI Diff for external journal API
3629
run: |
37-
java -jar /app/openapi-diff.jar --fail-on-changed base/sormas-rest/swagger.yaml \
30+
java -jar /app/openapi-diff.jar --fail-on-incompatible base/sormas-rest/swagger.yaml \
3831
head/sormas-rest/swagger.yaml
3932

0 commit comments

Comments
 (0)