@@ -39,50 +39,10 @@ jobs:
39
39
strategy :
40
40
fail-fast : false
41
41
matrix :
42
- php-version : [ '7.2', '7.3', '7.4' ]
43
-
44
- steps :
45
- - name : Checkout
46
- uses : actions/checkout@v4
47
-
48
- - name : Install PHP
49
- uses : shivammathur/setup-php@v2
50
- with :
51
- php-version : ${{ matrix.php-version }}
52
- ini-values : error_reporting=E_ALL
53
- tools : composer:v2
54
- coverage : none
55
-
56
- - name : Show the Composer configuration
57
- run : composer config --global --list
58
-
59
- - name : Cache dependencies installed with composer
60
- uses : actions/cache@v4
61
- with :
62
- path : ~/.cache/composer
63
- key : php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
64
- restore-keys : |
65
- php${{ matrix.php-version }}-composer-
66
-
67
- - name : Install Composer dependencies
68
- run : |
69
- composer update --with-dependencies --no-progress;
70
- composer show;
71
-
72
- - name : Run Tests
73
- run : ./vendor/bin/phpunit --coverage-clover build/coverage/xml
74
-
75
- coverage :
76
- name : Coverage
77
-
78
- runs-on : ubuntu-22.04
79
-
80
- needs : [ php-lint ]
81
-
82
- strategy :
83
- fail-fast : false
84
- matrix :
85
- php-version : [ '7.4' ]
42
+ php-version : [ '7.2', '7.3' ]
43
+ coverage : [ 'none' ]
44
+ include :
45
+ - php-version : ' 7.4'
86
46
87
47
steps :
88
48
- name : Checkout
94
54
php-version : ${{ matrix.php-version }}
95
55
ini-values : error_reporting=E_ALL
96
56
tools : composer:v2
97
- coverage : xdebug
57
+ coverage : " ${{ matrix.coverage }} "
98
58
99
59
- name : Show the Composer configuration
100
60
run : composer config --global --list
@@ -113,14 +73,7 @@ jobs:
113
73
composer show;
114
74
115
75
- name : Run Tests
116
- run : ./vendor/bin/phpunit --coverage-clover build/coverage/xml
117
-
118
- - name : Upload coverage results to Codacy
119
- env :
120
- CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
121
- if : " ${{ env.CODACY_PROJECT_TOKEN != '' }}"
122
- run : |
123
- ./vendor/bin/codacycoverage clover build/coverage/xml
76
+ run : ./vendor/bin/phpunit
124
77
125
78
static-analysis :
126
79
name : Static Analysis
0 commit comments