Skip to content

Commit 0273166

Browse files
committed
test
1 parent aed0e8f commit 0273166

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ jobs:
126126
path: ${{ steps.composercache.outputs.dir }}
127127
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
128128
restore-keys: ${{ runner.os }}-composer-
129-
- name: Enable code coverage
130-
if: matrix.coverage
131-
run: echo "COVERAGE=1" >> $GITHUB_ENV
129+
# - name: Enable code coverage
130+
# if: matrix.coverage
131+
# run: echo "COVERAGE=1" >> $GITHUB_ENV
132132
- name: Remove Doctrine MongoDB ODM
133133
if: (startsWith(matrix.php, '7.1'))
134134
run: |
@@ -147,34 +147,30 @@ jobs:
147147
- name: Run PHPUnit tests
148148
run: |
149149
mkdir -p build/logs/phpunit
150-
if [ "$COVERAGE" = '1' ]; then
151-
vendor/bin/simple-phpunit --coverage-clover build/logs/phpunit/clover.xml --log-junit build/logs/phpunit/junit.xml
152-
else
153-
vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
154-
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
150+
vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
151+
# - name: Upload test artifacts
152+
# if: always()
153+
# uses: actions/upload-artifact@v1
154+
# with:
155+
# name: phpunit-logs-php${{ matrix.php }}
156+
# path: build/logs/phpunit
157+
# continue-on-error: true
158+
# - name: Upload coverage results to Codecov
159+
# if: matrix.coverage
160+
# uses: codecov/codecov-action@v1
161+
# with:
162+
# name: phpunit-php${{ matrix.php }}
163+
# flags: phpunit
164+
# fail_ci_if_error: true
165+
# continue-on-error: true
166+
# - name: Upload coverage results to Coveralls
167+
# if: matrix.coverage
168+
# env:
169+
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
170+
# run: |
171+
# composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
172+
# export PATH="$PATH:$HOME/.composer/vendor/bin"
173+
# coveralls build/logs/phpunit/clover.xml
178174
continue-on-error: true
179175

180176
behat:

0 commit comments

Comments
 (0)