@@ -2,47 +2,28 @@ name: CI
2
2
3
3
on :
4
4
pull_request :
5
- paths-ignore :
6
- - *.md
5
+ paths-ignore : ["*.md"]
7
6
push :
8
- paths-ignore :
9
- - *.md
7
+ paths-ignore : ["*.md"]
10
8
11
9
jobs :
12
10
analysis :
13
-
14
-
15
11
runs-on : ubuntu-latest
16
-
17
-
18
-
19
12
strategy :
20
13
matrix :
21
- php : ['8.2', 8.3, '8.3', '8.4']
22
-
23
-
24
-
14
+ php : [8.3]
25
15
steps :
26
16
- uses : actions/checkout@v4
27
-
28
-
29
-
30
17
- name : Setup PHP
31
18
uses : shivammathur/setup-php@v2
32
19
with :
33
20
php-version : ${{ matrix.php }}
34
21
extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv
35
22
coverage : none
36
-
37
-
38
-
39
23
- name : Get Composer Cache Directory
40
24
id : composer-cache
41
25
run : |
42
26
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
43
-
44
-
45
-
46
27
- name : Cache composer dependencies
47
28
uses : actions/cache@v4
48
29
env :
@@ -52,57 +33,30 @@ jobs:
52
33
key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
53
34
restore-keys : |
54
35
php-${{ matrix.php }}-build-${{ env.cache-name }}-
55
-
56
-
57
-
58
36
- name : Install composer dependencies
59
37
run : composer install --prefer-dist
60
-
61
-
62
-
63
38
- name : Run static analysis
64
39
run : composer analyse
65
-
66
40
test :
67
41
name : Test (PHP ${{ matrix.php }})
68
-
69
-
70
- needs :
71
- - analysis
72
-
73
-
42
+ needs : [analysis]
74
43
runs-on : ubuntu-latest
75
-
76
-
77
-
78
44
strategy :
79
45
matrix :
80
- php : [8.0, 8.1, 8.2]
81
-
82
-
83
-
46
+ php : [8.0, 8.1, 8.2, 8.3, 8.4]
84
47
steps :
85
48
- name : Checkout repository
86
49
uses : actions/checkout@v4
87
-
88
-
89
-
90
50
- name : Set up PHP
91
51
uses : shivammathur/setup-php@v2
92
52
with :
93
53
php-version : ${{ matrix.php }}
94
54
extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv
95
55
coverage : none
96
-
97
-
98
-
99
56
- name : Get Composer Cache Directory
100
57
id : composer-cache
101
58
run : |
102
59
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
103
-
104
-
105
-
106
60
- name : Cache composer dependencies
107
61
uses : actions/cache@v4
108
62
env :
@@ -112,76 +66,41 @@ jobs:
112
66
key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
113
67
restore-keys : |
114
68
php-${{ matrix.php }}-build-${{ env.cache-name }}-
115
-
116
-
117
-
118
69
- name : Install composer dependencies
119
70
run : composer install --no-interaction --prefer-dist
120
-
121
-
122
-
123
71
- name : Run PHPUnit tests
124
72
run : vendor/bin/phpunit
125
-
126
73
test-coverage :
127
74
name : Test (PHP ${{ matrix.php }})
128
-
129
-
130
- needs :
131
- - analysis
132
-
133
-
75
+ needs : [analysis]
134
76
runs-on : ubuntu-latest
135
-
136
-
137
-
138
77
strategy :
139
78
matrix :
140
- php : ['8.2', 8.3, '8.3', '8.4']
141
-
142
-
143
-
79
+ php : [8.3]
144
80
steps :
145
81
- name : Checkout repository
146
82
uses : actions/checkout@v4
147
-
148
-
149
-
150
83
- name : Set up PHP
151
84
uses : shivammathur/setup-php@v2
152
85
with :
153
86
php-version : ${{ matrix.php }}
154
87
extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd, exif, iconv
155
-
156
-
157
-
158
88
- name : Get Composer Cache Directory
159
89
id : composer-cache
160
90
run : |
161
91
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
162
-
163
-
164
-
165
92
- name : Cache composer dependencies
166
93
uses : actions/cache@v4
167
94
env :
168
95
cache-name : eloquent-blameable-test
169
96
with :
170
97
path : ${{ steps.composer-cache.outputs.dir }}
171
98
key : php-${{ matrix.php }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.json') }}
172
- restore-keys : php-${{ matrix.php }}-build-${{ env.cache-name }}-
173
-
174
-
175
-
99
+ restore-keys : |
100
+ php-${{ matrix.php }}-build-${{ env.cache-name }}-
176
101
- name : Install composer dependencies
177
102
run : composer install --no-interaction --prefer-dist
178
-
179
-
180
-
181
103
- name : Run PHPUnit tests and generate code coverage
182
104
run : vendor/bin/phpunit --coverage-clover=clover.xml
183
-
184
-
185
-
186
105
- name : Upload code coverage results
187
106
run : bash <(curl -s https://codecov.io/bash)
0 commit comments