Skip to content

Commit 8053885

Browse files
committed
test cov
1 parent 7dcba94 commit 8053885

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,40 +141,42 @@ jobs:
141141
if: (!startsWith(matrix.php, '7.1'))
142142
run: composer require symfony/intl symfony/uid --dev --no-interaction --no-progress --ansi
143143
- name: Install PHPUnit
144+
env:
145+
SYMFONY_PHPUNIT_VERSION: '9.5'
144146
run: vendor/bin/simple-phpunit --version
145147
- name: Clear test app cache
146148
run: tests/Fixtures/app/console cache:clear --ansi
147149
- name: Run PHPUnit tests
148150
run: |
149151
mkdir -p build/logs/phpunit
150152
if [ "$COVERAGE" = '1' ]; then
151-
vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
153+
php -d memory_limit=-1 -d display_startup_errors=on -d display_errors=On -d error_reporting=22527 vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
152154
else
153155
vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
154156
fi
155-
# - name: Upload test artifacts
156-
# if: always()
157-
# uses: actions/upload-artifact@v1
158-
# with:
159-
# name: phpunit-logs-php${{ matrix.php }}
160-
# path: build/logs/phpunit
161-
# continue-on-error: true
162-
# - name: Upload coverage results to Codecov
163-
# if: matrix.coverage
164-
# uses: codecov/codecov-action@v1
165-
# with:
166-
# name: phpunit-php${{ matrix.php }}
167-
# flags: phpunit
168-
# fail_ci_if_error: true
169-
# continue-on-error: true
170-
# - name: Upload coverage results to Coveralls
171-
# if: matrix.coverage
172-
# env:
173-
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174-
# run: |
175-
# composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
176-
# export PATH="$PATH:$HOME/.composer/vendor/bin"
177-
# coveralls build/logs/phpunit/clover.xml
157+
- name: Upload test artifacts
158+
if: always()
159+
uses: actions/upload-artifact@v1
160+
with:
161+
name: phpunit-logs-php${{ matrix.php }}
162+
path: build/logs/phpunit
163+
continue-on-error: true
164+
- name: Upload coverage results to Codecov
165+
if: matrix.coverage
166+
uses: codecov/codecov-action@v1
167+
with:
168+
name: phpunit-php${{ matrix.php }}
169+
flags: phpunit
170+
fail_ci_if_error: true
171+
continue-on-error: true
172+
- name: Upload coverage results to Coveralls
173+
if: matrix.coverage
174+
env:
175+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176+
run: |
177+
composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
178+
export PATH="$PATH:$HOME/.composer/vendor/bin"
179+
coveralls build/logs/phpunit/clover.xml
178180
continue-on-error: true
179181

180182
behat:

0 commit comments

Comments
 (0)