1
- name : PHP Composer
1
+ name : test-and-qa
2
2
3
3
on :
4
4
push :
@@ -10,41 +10,70 @@ permissions:
10
10
contents : read
11
11
12
12
jobs :
13
- build :
14
- name : Build
15
-
13
+ TestsCompatibilityJobs :
16
14
runs-on : ubuntu-latest
17
15
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ include :
20
+ - php-version : " 8.0"
21
+ dependencies : " lowest"
22
+
18
23
steps :
19
- - uses : actions/checkout@v3
24
+ - name : Git Checkout
25
+ uses : actions/checkout@v3
26
+
27
+ - name : PHP Setup
28
+ uses : shivammathur/setup-php@v2
29
+ with :
30
+ php-version : ${{ matrix.php-version }}
20
31
21
32
- name : Validate composer.json and composer.lock
22
- run : bin/ composer validate --strict
33
+ run : composer validate --strict
23
34
24
- - name : Cache Composer packages
25
- id : composer-cache
26
- uses : actions/cache@v3
35
+ - name : Install dependencies
36
+ uses : ramsey/composer-install@v2
27
37
with :
28
- path : vendor
29
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
30
- restore-keys : |
31
- ${{ runner.os }}-php-
38
+ dependency-versions : ${{ matrix.dependencies }}
32
39
33
- - name : Install dependencies
34
- run : bin/composer install --prefer-dist --no-progress
40
+ - name : Execute tests
41
+ run : composer tests
42
+
43
+ TestsAndQaJobs :
44
+ runs-on : ubuntu-latest
35
45
36
- - name : Run tests with phpunit
37
- run : bin/composer tests
46
+ strategy :
47
+ fail-fast : false
48
+ matrix :
49
+ include :
50
+ - php-version : " 8.1"
51
+ dependencies : " highest"
52
+ - php-version : " 8.2"
53
+ dependencies : " highest"
38
54
39
- - name : Send code coverage report to Codecov.io
40
- uses : codecov/codecov-action@v2
55
+ steps :
56
+ - name : Git Checkout
57
+ uses : actions/checkout@v3
58
+
59
+ - name : PHP Setup
60
+ uses : shivammathur/setup-php@v2
41
61
with :
42
- token : 56f489e7-c92b-4851-bfc6-5fa9a93f0426
43
- files : reports/clover.xml
62
+ php-version : ${{ matrix.php-version }}
44
63
45
- - name : Check CS-Fixer
46
- run : bin/composer fix-cs:check
64
+ - name : Validate composer.json and composer.lock
65
+ run : composer validate --strict
66
+
67
+ - name : Install dependencies
68
+ uses : ramsey/composer-install@v2
69
+ with :
70
+ dependency-versions : ${{ matrix.dependencies }}
47
71
72
+ - name : Check CS-Fixer
73
+ run : composer cs:check
48
74
49
75
- name : Check PHPStan
50
- run : bin/composer phpstan-gitlab
76
+ run : composer phpstan
77
+
78
+ - name : Execute tests
79
+ run : composer tests
0 commit comments