Skip to content

Commit

Permalink
fix(ci): Test against all server apps
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Apr 9, 2024
1 parent 5cbbceb commit 026cd4c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test-repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 026cd4c

Please sign in to comment.