Skip to content

Commit 95d641d

Browse files
authored
[TASK] Stop collecting code coverage on the maintenance branch (#476)
We're not using the code coverage of maintenance branches for anything and could as well speed up the CI build instead.
1 parent ffd5a84 commit 95d641d

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ jobs:
4141
strategy:
4242
fail-fast: false
4343
matrix:
44-
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3' ]
45-
coverage: [ 'none' ]
46-
include:
47-
- php-version: '7.4'
48-
coverage: xdebug
44+
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4' ]
4945

5046
steps:
5147
- name: Checkout
@@ -57,7 +53,7 @@ jobs:
5753
php-version: ${{ matrix.php-version }}
5854
ini-values: error_reporting=E_ALL
5955
tools: composer:v2
60-
coverage: "${{ matrix.coverage }}"
56+
coverage: none
6157

6258
- name: Show the Composer configuration
6359
run: composer config --global --list
@@ -76,14 +72,7 @@ jobs:
7672
composer show;
7773
7874
- name: Run Tests
79-
run: ./vendor/bin/phpunit --coverage-clover build/coverage/xml
80-
81-
- name: Upload coverage results to Codacy
82-
env:
83-
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
84-
if: "${{ matrix.coverage != 'none' && env.CODACY_PROJECT_TOKEN != '' }}"
85-
run: |
86-
./vendor/bin/codacycoverage clover build/coverage/xml
75+
run: ./vendor/bin/phpunit
8776

8877
static-analysis:
8978
name: Static Analysis

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"ext-iconv": "*"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^5.7.27",
31-
"codacy/coverage": "^1.4.3"
30+
"phpunit/phpunit": "^5.7.27"
3231
},
3332
"suggest": {
3433
"ext-mbstring": "for parsing UTF-8 CSS"

0 commit comments

Comments
 (0)