fix(ZMS): align docblock return types with native signatures #1501
This file contains hidden or 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: 🐘 Combined PHP Build with Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| pages: write | |
| id-token: write | |
| actions: write | |
| security-events: write | |
| jobs: | |
| call-php-code-quality: | |
| uses: ./.github/workflows/php-code-quality.yaml | |
| call-php-unit-tests: | |
| uses: ./.github/workflows/php-unit-tests.yaml | |
| call-zmscitizenview-coverage: | |
| uses: ./.github/workflows/zmscitizenview-coverage.yaml | |
| # OWASP/dependency reports are no longer published to GitHub Pages; this job still runs for CI visibility. | |
| call-trivy-security-checks: | |
| uses: ./.github/workflows/trivy.yaml | |
| aggregate-reports: | |
| needs: [call-php-unit-tests, call-zmscitizenview-coverage] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create directories | |
| run: | | |
| mkdir -p public/coverage | |
| - name: Download coverage reports | |
| uses: actions/download-artifact@v8 | |
| with: | |
| pattern: 'coverage-*' | |
| path: public/coverage-temp | |
| merge-multiple: false | |
| - name: Fix directory structure | |
| run: | | |
| MODULES="zmsadmin zmscalldisplay zmscitizenapi zmsdldb zmsentities zmsmessaging zmsslim zmsstatistic zmsticketprinter zmsapi zmsdb zmsclient zmscitizenview" | |
| # Fix coverage reports | |
| for module in $MODULES; do | |
| if [ -d "public/coverage-temp/coverage-$module" ]; then | |
| mkdir -p "public/coverage/coverage-$module" | |
| mv "public/coverage-temp/coverage-$module"/* "public/coverage/coverage-$module/" | |
| fi | |
| done | |
| rm -rf public/coverage-temp | |
| - name: Debug - List final structure | |
| run: | | |
| echo "=== Final Coverage Structure ===" | |
| ls -R public/coverage/ | |
| - name: Upload aggregated reports | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: aggregated-reports | |
| path: public/ | |
| retention-days: 7 | |
| call-build-api-docs: | |
| uses: ./.github/workflows/build-api-docs.yaml | |
| generate-schema-diagrams: | |
| uses: ./.github/workflows/generate-api-class-diagrams-from-zmsentities-schema.yaml | |
| generate-database-schema: | |
| uses: ./.github/workflows/generate-database-er-model.yaml | |
| deploy-to-pages: | |
| needs: [aggregate-reports, call-build-api-docs, generate-schema-diagrams, generate-database-schema] | |
| if: | | |
| needs.call-build-api-docs.result == 'success' && | |
| needs.aggregate-reports.result == 'success' && | |
| needs.generate-schema-diagrams.result == 'success' && | |
| needs.generate-database-schema.result == 'success' | |
| uses: ./.github/workflows/deploy-pages.yaml | |
| with: | |
| coverage_artifact: aggregated-reports | |
| api_docs_artifact: api-docs | |
| git_commit: ${{ github.sha }} | |
| git_branch: ${{ github.ref_name }} | |
| call-php-build-images: | |
| needs: [call-php-code-quality, call-php-unit-tests] | |
| if: | | |
| always() && | |
| needs.call-php-code-quality.result == 'success' && | |
| needs.call-php-unit-tests.result == 'success' | |
| uses: ./.github/workflows/php-build-images.yaml |