1
1
name : CI
2
2
3
- on : [push]
3
+ on : [push, pull_request ]
4
4
5
5
jobs :
6
- phpunit :
6
+ blackbox :
7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
10
10
os : [ubuntu-latest, macOS-latest]
11
- php-version : ['8.1', '8. 2', '8.3']
11
+ php-version : ['8.2', '8.3']
12
12
dependencies : ['lowest', 'highest']
13
- name : ' PHPUnit '
13
+ name : ' BlackBox '
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v4
17
+ - name : Setup PHP
18
+ uses : shivammathur/setup-php@v2
19
+ with :
20
+ php-version : ${{ matrix.php-version }}
21
+ extensions : mbstring, intl
22
+ coverage : none
23
+ - name : Composer
24
+ uses : " ramsey/composer-install@v2"
25
+ with :
26
+ dependency-versions : ${{ matrix.dependencies }}
27
+ - name : BlackBox
28
+ run : php blackbox.php
29
+ coverage :
30
+ runs-on : ${{ matrix.os }}
31
+ strategy :
32
+ matrix :
33
+ os : [ubuntu-latest, macOS-latest]
34
+ php-version : ['8.2', '8.3']
35
+ dependencies : ['lowest', 'highest']
36
+ name : ' Coverage'
37
+ steps :
38
+ - name : Checkout
39
+ uses : actions/checkout@v4
17
40
- name : Setup PHP
18
41
uses : shivammathur/setup-php@v2
19
42
with :
20
43
php-version : ${{ matrix.php-version }}
21
44
extensions : mbstring, intl
22
45
coverage : xdebug
23
- ini-values : xdebug.max_nesting_level=2048
24
46
- name : Composer
25
47
uses : " ramsey/composer-install@v2"
26
48
with :
27
49
dependency-versions : ${{ matrix.dependencies }}
28
- - name : PHPUnit
29
- run : vendor/bin/phpunit --coverage-clover=coverage.clover
30
- - uses : codecov/codecov-action@v1
50
+ - name : BlackBox
51
+ run : php blackbox.php
52
+ env :
53
+ ENABLE_COVERAGE : ' true'
54
+ - uses : codecov/codecov-action@v3
31
55
with :
32
56
token : ${{ secrets.CODECOV_TOKEN }}
33
57
psalm :
34
58
runs-on : ubuntu-latest
35
59
strategy :
36
60
matrix :
37
- php-version : ['8.1', '8. 2', '8.3']
61
+ php-version : ['8.2', '8.3']
38
62
dependencies : ['lowest', 'highest']
39
63
name : ' Psalm'
40
64
steps :
41
65
- name : Checkout
42
- uses : actions/checkout@v2
66
+ uses : actions/checkout@v4
43
67
- name : Setup PHP
44
68
uses : shivammathur/setup-php@v2
45
69
with :
@@ -55,11 +79,11 @@ jobs:
55
79
runs-on : ubuntu-latest
56
80
strategy :
57
81
matrix :
58
- php-version : ['8.1 ']
82
+ php-version : ['8.2 ']
59
83
name : ' CS'
60
84
steps :
61
85
- name : Checkout
62
- uses : actions/checkout@v2
86
+ uses : actions/checkout@v4
63
87
- name : Setup PHP
64
88
uses : shivammathur/setup-php@v2
65
89
with :
0 commit comments