File tree 3 files changed +52
-30
lines changed
3 files changed +52
-30
lines changed Original file line number Diff line number Diff line change 1
- name : Fix Styles
1
+ name : Style fix
2
2
3
3
on :
4
4
push :
5
5
branches : [master]
6
6
7
7
jobs :
8
- style :
8
+ style-fix :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v4
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
13
14
14
15
- name : Setup PHP
15
16
uses : shivammathur/setup-php@v2
16
17
with :
17
- php-version : 8.2
18
+ php-version : 8.3
19
+
20
+ - name : Cache Composer packages
21
+ id : composer-cache
22
+ uses : actions/cache@v4
23
+ with :
24
+ path : vendor
25
+ key : ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-php-8.3-
18
28
19
29
- name : Install dependencies
30
+ if : steps.composer-cache.outputs.cache-hit != 'true'
20
31
run : |
21
- composer install
32
+ composer install --no-interaction --no-progress
22
33
composer dump
23
34
24
35
- name : Fix styles
Original file line number Diff line number Diff line change 1
- name : tests
1
+ name : Tests
2
2
3
3
on :
4
4
push :
8
8
9
9
jobs :
10
10
phpunit :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
strategy :
14
+ fail-fast : true
15
15
matrix :
16
- php : [8.3, 8.2, 8.1, 8.0]
17
-
18
- name : PHP${{ matrix.php }}
16
+ php : [8.0, 8.1, 8.2, 8.3]
19
17
20
18
steps :
21
- - uses : actions/checkout@v4
22
-
23
- - name : Setup PHP
24
- uses : shivammathur/setup-php@v2
25
- with :
26
- php-version : ${{ matrix.php }}
27
-
28
- - name : Validate composer.json and composer.lock
29
- run : composer validate
30
-
31
- - name : Install dependencies
32
- run : |
33
- composer install
34
- composer dump
35
-
36
- - name : Run test phpunit
37
- run : composer test
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Setup PHP
23
+ uses : shivammathur/setup-php@v2
24
+ with :
25
+ php-version : ${{ matrix.php }}
26
+
27
+ - name : Validate composer.json
28
+ run : composer validate
29
+
30
+ - name : Cache Composer packages
31
+ id : composer-cache
32
+ uses : actions/cache@v4
33
+ with :
34
+ path : vendor
35
+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-php-${{ matrix.php }}-
38
+
39
+ - name : Install dependencies
40
+ if : steps.composer-cache.outputs.cache-hit != 'true'
41
+ run : |
42
+ composer install --no-interaction --no-progress
43
+ composer dump
44
+
45
+ - name : Run test phpunit
46
+ run : vendor/bin/phpunit --stop-on-error --stop-on-failure
Original file line number Diff line number Diff line change 2
2
"name" : " descom/dev" ,
3
3
"description" : " Package to PHP Developer projects in Descom.es" ,
4
4
"type" : " library" ,
5
- "keywords" : [" dev" ],
5
+ "keywords" : [
6
+ " dev"
7
+ ],
6
8
"require" : {
7
9
"php" : " ^8.0"
8
10
},
24
26
"prefer-stable" : true ,
25
27
"require-dev" : {
26
28
"friendsofphp/php-cs-fixer" : " ^3.35" ,
27
- "phpunit/phpunit" : " ^9.5"
29
+ "phpunit/phpunit" : " ^9.5|^10.0|^10.5 "
28
30
},
29
31
"autoload" : {
30
32
"psr-4" : {
38
40
"suggest" : {
39
41
"friendsofphp/php-cs-fixer" : " Required to apply styles"
40
42
}
41
- }
43
+ }
You can’t perform that action at this time.
0 commit comments