-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feat-zms-2936-initial-setup-webcomponent
- Loading branch information
Showing
1,220 changed files
with
48,430 additions
and
18,030 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Pull Request Checklist (Feature Branch to `next`): | ||
|
||
- [ ] Ich habe die neuesten Änderungen aus dem `next` Branch in meinen Feature-Branch gemergt. | ||
- [ ] Das Code-Review wurde abgeschlossen. | ||
- [ ] Fachliche Tests wurden durchgeführt und sind abgeschlossen. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Build API Documentation | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
result: | ||
description: "Build result" | ||
value: ${{ jobs.build.outputs.result }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
result: ${{ steps.set-result.outputs.result }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
extensions: mbstring, json | ||
tools: composer | ||
|
||
- name: Install PHP dependencies | ||
run: | | ||
composer install --working-dir=zmsapi | ||
composer install --working-dir=zmscitizenapi | ||
- name: Run PHP post-install scripts | ||
run: | | ||
cd zmsapi && bin/configure && composer run-script post-install-cmd && cd .. | ||
cd zmscitizenapi && bin/configure && composer run-script post-install-cmd && cd .. | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install Node.js dependencies | ||
run: | | ||
cd zmsapi && npm install && cd .. | ||
cd zmscitizenapi && npm install && cd .. | ||
- name: Build projects | ||
run: | | ||
cd zmsapi && npm run build && cd .. | ||
cd zmscitizenapi && npm run build && cd .. | ||
- name: Generate Swagger documentation | ||
run: | | ||
cd zmsapi | ||
npm run doc | ||
npx swagger-cli bundle -o public/doc/swagger.json public/doc/swagger.yaml | ||
cd .. | ||
cd zmscitizenapi | ||
npm run doc | ||
npx swagger-cli bundle -o public/doc/swagger.json public/doc/swagger.yaml | ||
cd .. | ||
- name: Upload API docs artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: api-docs | ||
retention-days: 7 | ||
path: | | ||
zmsapi/public/doc/ | ||
zmscitizenapi/public/doc/ | ||
- name: Set job result | ||
id: set-result | ||
if: always() | ||
run: echo "result=${{ job.status }}" >> $GITHUB_OUTPUT |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Combined Workflow with Documentation | ||
|
||
on: | ||
push: | ||
branches: [next] | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
pages: write | ||
id-token: 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-owasp-security-checks: | ||
uses: ./.github/workflows/owasp-security-checks.yaml | ||
|
||
aggregate-reports: | ||
needs: [call-php-unit-tests, call-owasp-security-checks] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create directories | ||
run: | | ||
mkdir -p public/coverage | ||
mkdir -p public/security | ||
- name: Download coverage reports | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: 'coverage-*' | ||
path: public/coverage-temp | ||
merge-multiple: false | ||
|
||
- name: Download security reports | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: 'security-report-*' | ||
path: public/security-temp | ||
merge-multiple: false | ||
|
||
- name: Fix directory structure | ||
run: | | ||
# Fix coverage reports | ||
for module in zmsadmin zmscalldisplay zmscitizenapi zmsdldb zmsentities zmsmessaging zmsslim zmsstatistic zmsticketprinter zmsapi zmsdb zmsclient; 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 | ||
# Fix security reports | ||
for module in zmsadmin zmscalldisplay zmscitizenapi zmsdldb zmsentities zmsmessaging zmsslim zmsstatistic zmsticketprinter zmsapi zmsdb zmsclient; do | ||
if [ -f "public/security-temp/security-report-$module/dependency-check-report.html" ]; then | ||
mkdir -p "public/security/security-report-$module" | ||
mv "public/security-temp/security-report-$module/dependency-check-report.html" "public/security/security-report-$module/" | ||
fi | ||
done | ||
rm -rf public/security-temp | ||
- name: Debug - List final structure | ||
run: | | ||
echo "=== Final Coverage Structure ===" | ||
ls -R public/coverage/ | ||
echo "=== Final Security Structure ===" | ||
ls -R public/security/ | ||
- name: Upload aggregated reports | ||
uses: actions/upload-artifact@v4 | ||
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-schema-diagrams.yaml | ||
|
||
deploy-to-pages: | ||
needs: [aggregate-reports, call-build-api-docs, generate-schema-diagrams] | ||
if: | | ||
needs.call-build-api-docs.result == 'success' && | ||
needs.aggregate-reports.result == 'success' && | ||
needs.generate-schema-diagrams.result == 'success' | ||
uses: ./.github/workflows/deploy-pages.yaml | ||
with: | ||
coverage_artifact: aggregated-reports | ||
api_docs_artifact: api-docs | ||
security_artifact: aggregated-reports | ||
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
name: Combined Workflow | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches-ignore: [next] | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
jobs: | ||
call-unit-tests: | ||
uses: ./.github/workflows/unit-tests.yaml | ||
call-php-code-quality: | ||
uses: ./.github/workflows/php-code-quality.yaml | ||
|
||
call-php-unit-tests: | ||
uses: ./.github/workflows/php-unit-tests.yaml | ||
|
||
call-owasp-security-checks: | ||
uses: ./.github/workflows/owasp-security-checks.yaml | ||
|
||
call-build-images: | ||
needs: call-unit-tests | ||
uses: ./.github/workflows/build-images.yaml | ||
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 |
Oops, something went wrong.