Skip to content

Commit

Permalink
fix(ZMS): make actions fail on test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fink authored and Thomas Fink committed Feb 26, 2025
1 parent 7c990a1 commit 8ccf1ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 57 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/php-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,23 @@ jobs:
- name: Install Composer Dependencies
run: |
set -e
cd "${{ matrix.module }}"
composer install --no-progress --prefer-dist --optimize-autoloader
- name: Run Unit Tests with Coverage
env:
XDEBUG_MODE: coverage
run: |
set -e
cd "${{ matrix.module }}"
mkdir -p coverage
echo "Running tests with coverage for ${{ matrix.module }}"
php -dmemory_limit=-1 \
./vendor/bin/phpunit -c phpunit.xml \
--coverage-html coverage/html \
--coverage-clover coverage/clover.xml \
--log-junit coverage/junit.xml || if [ $? -eq 2 ] && [ -f "coverage/clover.xml" ]; then exit 0; fi
--log-junit coverage/junit.xml
echo "Coverage files generated:"
ls -la coverage/
Expand Down Expand Up @@ -256,6 +258,7 @@ jobs:
- name: Run Unit Tests
run: |
set -e
cd ./zmsclient
mkdir -p coverage
docker-compose up -d
Expand Down
5 changes: 4 additions & 1 deletion zmsadmin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions zmscalldisplay/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 0 additions & 40 deletions zmsstatistic/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ccf1ac

Please sign in to comment.