Skip to content

Commit 31f2c4f

Browse files
committed
ci: Test generating merged server specs
Signed-off-by: provokateurin <[email protected]>
1 parent a046a00 commit 31f2c4f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test-repositories.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,25 @@ jobs:
7676
if: matrix.repositories == 'nextcloud/server'
7777
working-directory: temp-repository/
7878
run: |
79+
specs=()
7980
for path in core apps/*; do
8081
if [ ! -f "$path/.noopenapi" ]; then
8182
../bin/generate-spec "$path" "$path/openapi.json" || exit 1
83+
if [[ "$(basename "$path")" != "core" ]]; then
84+
if [ -f "$path/openapi-full.json" ]; then
85+
specs+=("$path/openapi-full.json")
86+
else
87+
specs+=("$path/openapi.json")
88+
fi
89+
fi
8290
fi
8391
done
8492
93+
../bin/merge-specs \
94+
--core core/openapi-full.json \
95+
--merged openapi.json \
96+
"${specs[@]}"
97+
8598
- name: Show changes of the API for assistance
8699
working-directory: temp-repository/
87100
run: |

0 commit comments

Comments
 (0)