Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Oct 7, 2021
1 parent 259b112 commit 7cacba2
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ jobs:
type: 'CodingStyle'
- php: 'latest'
type: 'StaticAnalysis'
env:
LOG_COVERAGE: ""
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Configure PHP
run: |
if [ -n "$LOG_COVERAGE" ]; then echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; else rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; fi
rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
php --version
- name: Setup cache 1/2
Expand All @@ -56,19 +54,11 @@ jobs:
- name: Init
run: |
mkdir -p build/logs
php demos/_demo-data/create-db.php
- name: "Run tests: SQLite (only for Phpunit)"
if: matrix.type == 'Phpunit'
if: startsWith(matrix.type, 'Phpunit')
run: |
if [ -n "$LOG_COVERAGE" ]; then
cp tools/CoverageUtil.php demos
mkdir coverage
vendor/bin/phpunit --exclude-group none --coverage-text -v
ls -l coverage | wc -l && mv coverage/* build/logs
else
vendor/bin/phpunit --exclude-group none --no-coverage -v
fi
vendor/bin/phpunit --exclude-group none --no-coverage -v
- name: Check Coding Style (only for CodingStyle)
if: matrix.type == 'CodingStyle'
Expand Down

0 comments on commit 7cacba2

Please sign in to comment.