@@ -10,110 +10,61 @@ jobs:
10
10
phpunit :
11
11
name : " PHPUnit"
12
12
runs-on : ubuntu-latest
13
-
14
13
strategy :
15
14
matrix :
16
15
include :
17
- - php-version : 8.0
18
- - php-version : 8.2
19
-
16
+ - php-version : ' 8.0'
17
+ - php-version : ' 8.2'
20
18
steps :
21
19
- name : " Checkout"
22
- uses : actions/checkout@v2
23
-
24
- - name : " Setup PHP"
25
- uses : shivammathur/setup-php@v2
20
+ uses : actions/checkout@v3
21
+ - name : " Setup env & install dependencies"
22
+ uses : ./.github/actions/install
26
23
with :
27
- coverage : none
28
24
php-version : ${{ matrix.php-version }}
29
-
30
- - name : " Install dependencies with composer"
31
- run : |
32
- composer update --no-interaction --no-progress --no-suggest
33
-
34
25
- name : " Run tests with phpunit/phpunit"
35
26
run : vendor/bin/phpunit
36
27
37
28
phpstan :
38
29
name : " PhpStan"
39
30
runs-on : ubuntu-latest
40
-
41
- strategy :
42
- matrix :
43
- include :
44
- - php-version : 8.2
45
-
46
31
steps :
47
32
- name : " Checkout"
48
- uses : actions/checkout@v2
49
-
50
- - name : " Setup PHP"
51
- uses : shivammathur/setup-php@v2
33
+ uses : actions/checkout@v3
34
+ - name : " Setup env & install dependencies"
35
+ uses : ./.github/actions/install
52
36
with :
53
- coverage : none
54
- php-version : ${{ matrix.php-version }}
55
-
56
- - name : " Install dependencies with composer"
57
- run : |
58
- composer update --no-interaction --no-progress --no-suggest
59
-
37
+ php-version : ' 8.2'
60
38
- name : " Run static analyzis with phpstan/phpstan"
61
39
run : vendor/bin/phpstan analyze
62
40
63
41
checkstyke :
64
42
name : " Checkstyle"
65
43
runs-on : ubuntu-latest
66
-
67
- strategy :
68
- matrix :
69
- include :
70
- - php-version : 8.2
71
-
72
44
steps :
73
45
- name : " Checkout"
74
- uses : actions/checkout@v2
75
-
76
- - name : " Setup PHP"
77
- uses : shivammathur/setup-php@v2
46
+ uses : actions/checkout@v3
47
+ - name : " Setup env & install dependencies"
48
+ uses : ./.github/actions/install
78
49
with :
79
- coverage : none
80
- php-version : ${{ matrix.php-version }}
81
-
82
- - name : " Install dependencies with composer"
83
- run : |
84
- composer update --no-interaction --no-progress --no-suggest
85
-
50
+ php-version : ' 8.2'
86
51
- name : " Run checkstyle with squizlabs/php_codesniffer"
87
52
run : vendor/bin/phpcs
88
53
89
54
codecov :
90
55
name : " Code coverage"
91
56
runs-on : ubuntu-latest
92
-
93
- strategy :
94
- matrix :
95
- include :
96
- - php-version : 8.2
97
-
98
57
steps :
99
58
- name : " Checkout"
100
- uses : actions/checkout@v2
101
-
102
- - name : " Setup PHP"
103
- uses : shivammathur/setup-php@v2
59
+ uses : actions/checkout@v3
60
+ - name : " Setup env & install dependencies"
61
+ uses : ./.github/actions/install
104
62
with :
105
- coverage : xdebug
106
- php-version : ${{ matrix.php-version }}
107
-
108
- - name : " Install dependencies with composer"
109
- run : |
110
- composer update --no-interaction --no-progress --no-suggest
111
-
63
+ php-version : ' 8.2'
112
64
- name : " Run tests with phpunit/phpunit"
113
65
env :
114
66
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
115
67
run : |
116
68
vendor/bin/phpunit --coverage-clover coverage.xml
117
-
118
69
- name : " Upload coverage to Codecov"
119
70
uses : codecov/codecov-action@v1
0 commit comments