From 026cd4c3208d6a24be7602e0585bf7f88d590c3c Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 9 Apr 2024 12:01:53 +0200 Subject: [PATCH] fix(ci): Test against all server apps Signed-off-by: provokateurin --- .github/workflows/test-repositories.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-repositories.yml b/.github/workflows/test-repositories.yml index 08c93f0..16a9c6f 100644 --- a/.github/workflows/test-repositories.yml +++ b/.github/workflows/test-repositories.yml @@ -57,17 +57,14 @@ jobs: working-directory: temp-repository/ run: ../generate-spec - - name: Generate OpenAPI - Core - if: matrix.repositories == 'nextcloud/server' - working-directory: temp-repository/ - run: ../generate-spec 'core' 'core/openapi.json' - - - name: Generate OpenAPI - Server apps + - name: Generate OpenAPI - Server if: matrix.repositories == 'nextcloud/server' working-directory: temp-repository/ run: | - for path in apps/*/openapi.json; do - ../generate-spec "$(dirname "$path")" "$path" || exit 1 + for path in core apps/*; do + if [ ! -f "$path/.noopenapi" ]; then + ../generate-spec "$path" "$path/openapi.json" || exit 1 + fi done - name: Show changes of the API for assistance