@@ -36,96 +36,33 @@ jobs:
36
36
tests :
37
37
name : Tests
38
38
39
- runs-on : ${{ matrix.os }}
40
-
41
- env :
42
- PHP_EXTENSIONS : dom, json, libxml, mbstring, pdo_sqlite, soap, xml, xmlwriter, :apcu, :imagick
43
- PHP_INI_VALUES : memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
44
-
45
- strategy :
46
- fail-fast : false
47
- matrix :
48
- os :
49
- - ubuntu-latest
50
- - windows-latest
51
-
52
- php-version :
53
- - " 7.3"
54
- - " 7.4"
55
- - " 8.0"
56
- - " 8.1"
57
-
58
- coverage-driver :
59
- - " pcov"
60
- - " xdebug"
61
- - " xdebug3"
62
-
63
- dependencies :
64
- - lowest
65
- - highest
66
-
67
- exclude :
68
- - php-version : " 8.0"
69
- coverage-driver : " xdebug"
70
-
71
- - php-version : " 8.1"
72
- coverage-driver : " xdebug"
39
+ runs-on : ubuntu-latest
73
40
74
41
steps :
75
- - name : Configure git to avoid issues with line endings
76
- if : matrix.os == 'windows-latest'
77
- run : git config --global core.autocrlf false
78
-
79
42
- name : Checkout
80
43
uses : actions/checkout@v3
81
44
82
- - name : Install PHP with extensions
83
- uses : shivammathur/setup-php@v2
84
- with :
85
- php-version : ${{ matrix.php-version }}
86
- coverage : ${{ matrix.coverage-driver }}
87
- extensions : ${{ env.PHP_EXTENSIONS }}
88
- ini-values : ${{ env.PHP_INI_VALUES }}
89
- tools : none
90
-
91
- - name : Install lowest dependencies with composer
92
- if : matrix.dependencies == 'lowest'
93
- run : php ./tools/composer update --no-ansi --no-interaction --no-progress --prefer-lowest
94
-
95
- - name : Install highest dependencies with composer
96
- if : matrix.dependencies == 'highest'
97
- run : php ./tools/composer update --no-ansi --no-interaction --no-progress
98
-
99
45
- name : Run tests with phpunit/phpunit
100
- run : vendor/bin/phpunit --coverage-clover=coverage.xml
46
+ run : composer tests
101
47
102
48
- name : Send code coverage report to Codecov.io
103
49
uses : codecov/codecov-action@v2
104
50
with :
105
51
token : 56f489e7-c92b-4851-bfc6-5fa9a93f0426
106
- # tests:
107
- # name: Tests
108
- #
109
- # runs-on: ubuntu-latest
110
- #
111
- # steps:
112
- # - name: Run test suite
113
- # uses: codecov/codecov-action@v2
114
- # run: composer tests
115
- # with:
116
- # token: 56f489e7-c92b-4851-bfc6-5fa9a93f0426
117
- # files: reports/clover.xml
118
- # verbose: true
52
+ files : reports/clover.xml
53
+
119
54
120
55
quality :
121
56
name : QualityAssurance
122
57
123
58
runs-on : ubuntu-latest
124
59
125
60
steps :
126
- - name : Check CS-Fixer
127
- run : composer fix-cs:check
61
+ - uses : actions/checkout@v3
62
+
63
+ - name : Check CS-Fixer
64
+ run : composer fix-cs:check
128
65
129
66
130
- - name : Check PHPStan
131
- run : composer phpstan-gitlab
67
+ - name : Check PHPStan
68
+ run : composer phpstan-gitlab
0 commit comments