Skip to content

Commit bf7dbc0

Browse files
Thomas FinkThomas Fink
Thomas Fink
authored and
Thomas Fink
committed
chore(ZMS): change workflow logic
1 parent f6b6c5f commit bf7dbc0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/combined-workflow.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@ jobs:
2222
steps:
2323
- run: echo "All required checks passed"
2424

25+
combine-coverage:
26+
needs: [call-php-unit-tests] # Only depends on tests
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Download all coverage reports
30+
uses: actions/download-artifact@v4
31+
with:
32+
path: all-coverage
33+
merge-multiple: true
34+
- name: Combine reports
35+
run: |
36+
mkdir -p combined-coverage
37+
for module in zmsadmin zmscalldisplay zmscitizenapi zmsdldb zmsentities zmsmessaging zmsslim zmsstatistic zmsticketprinter zmsapi zmsdb zmsclient; do
38+
if [ -d "all-coverage/coverage-$module" ]; then
39+
mkdir -p "combined-coverage/$module"
40+
cp -r "all-coverage/coverage-$module"/* "combined-coverage/$module/"
41+
fi
42+
done
43+
- name: Upload combined coverage
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: coverage-reports
47+
path: combined-coverage/
48+
retention-days: 7
49+
2550
call-build-images:
2651
needs: check-and-proceed
2752
if: |

0 commit comments

Comments
 (0)