Skip to content

Commit 7ca9b9b

Browse files
committed
test if coverage make things fail
1 parent 38fa026 commit 7ca9b9b

File tree

1 file changed

+24
-32
lines changed

1 file changed

+24
-32
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ jobs:
134134
composer remove --dev --no-interaction --no-progress --no-update --ansi \
135135
doctrine/mongodb-odm \
136136
doctrine/mongodb-odm-bundle \
137-
- name: Set Composer platform config
138-
if: (startsWith(matrix.php, '8.0'))
139-
run: |
140-
composer config platform.php 7.4.99
141137
- name: Update project dependencies
142138
run: composer update --no-interaction --no-progress --ansi
143139
- name: Require Symfony components
@@ -146,11 +142,7 @@ jobs:
146142
- name: Install PHPUnit
147143
run: vendor/bin/simple-phpunit --version
148144
- name: Clear test app cache
149-
if: (!startsWith(matrix.php, '8.0'))
150145
run: tests/Fixtures/app/console cache:clear --ansi
151-
- name: Clear test app cache (php 8.0)
152-
if: (startsWith(matrix.php, '8.0'))
153-
run: rm -Rf tests/Fixtures/app/var/cache/*
154146
- name: Run PHPUnit tests
155147
run: |
156148
mkdir -p build/logs/phpunit
@@ -159,30 +151,30 @@ jobs:
159151
else
160152
vendor/bin/simple-phpunit --log-junit build/logs/phpunit/junit.xml
161153
fi
162-
- name: Upload test artifacts
163-
if: always()
164-
uses: actions/upload-artifact@v1
165-
with:
166-
name: phpunit-logs-php${{ matrix.php }}
167-
path: build/logs/phpunit
168-
continue-on-error: true
169-
- name: Upload coverage results to Codecov
170-
if: matrix.coverage
171-
uses: codecov/codecov-action@v1
172-
with:
173-
name: phpunit-php${{ matrix.php }}
174-
flags: phpunit
175-
fail_ci_if_error: true
176-
continue-on-error: true
177-
- name: Upload coverage results to Coveralls
178-
if: matrix.coverage
179-
env:
180-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181-
run: |
182-
composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
183-
export PATH="$PATH:$HOME/.composer/vendor/bin"
184-
coveralls build/logs/phpunit/clover.xml
185-
continue-on-error: true
154+
# - name: Upload test artifacts
155+
# if: always()
156+
# uses: actions/upload-artifact@v1
157+
# with:
158+
# name: phpunit-logs-php${{ matrix.php }}
159+
# path: build/logs/phpunit
160+
# continue-on-error: true
161+
# - name: Upload coverage results to Codecov
162+
# if: matrix.coverage
163+
# uses: codecov/codecov-action@v1
164+
# with:
165+
# name: phpunit-php${{ matrix.php }}
166+
# flags: phpunit
167+
# fail_ci_if_error: true
168+
# continue-on-error: true
169+
# - name: Upload coverage results to Coveralls
170+
# if: matrix.coverage
171+
# env:
172+
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173+
# run: |
174+
# composer global require --prefer-dist --no-interaction --no-progress --ansi cedx/coveralls
175+
# export PATH="$PATH:$HOME/.composer/vendor/bin"
176+
# coveralls build/logs/phpunit/clover.xml
177+
# continue-on-error: true
186178

187179
behat:
188180
name: Behat (PHP ${{ matrix.php }})

0 commit comments

Comments
 (0)