1
- # https://help .github.com/en/categories/automating-your- workflow-with -github-actions
2
- # https://github.com/sebastianbergmann/phpunit/blob/master /.github/workflows/ci.yml
1
+ # https://docs .github.com/en/actions/using-workflows/ workflow-syntax-for -github-actions
2
+ # https://github.com/sebastianbergmann/phpunit/blob/main /.github/workflows/ci.yaml
3
3
4
4
on :
5
5
push :
11
11
12
12
name : " Continuous Integration"
13
13
14
+ env :
15
+ PHP_EXTENSIONS : ast, fileinfo, gd, imagick, json, mbstring
16
+ PHP_INI_VALUES : memory_limit=-1, error_reporting=-1, display_errors=On
17
+
14
18
jobs :
15
19
16
20
static-code-analysis :
@@ -36,11 +40,12 @@ jobs:
36
40
uses : shivammathur/setup-php@v2
37
41
with :
38
42
php-version : ${{ matrix.php-version }}
43
+ extensions : ${{ env.PHP_EXTENSIONS }}
44
+ ini-values : ${{ env.PHP_INI_VALUES }}
39
45
coverage : none
40
46
tools : pecl
41
- extensions : ast, fileinfo, gd, imagick, json, mbstring
42
47
43
- - name : " Update dependencies with composer"
48
+ - name : " Install dependencies with composer"
44
49
uses : ramsey/composer-install@v3
45
50
46
51
- name : " Run phan"
@@ -70,14 +75,15 @@ jobs:
70
75
uses : shivammathur/setup-php@v2
71
76
with :
72
77
php-version : ${{ matrix.php-version }}
78
+ extensions : ${{ env.PHP_EXTENSIONS }}
79
+ ini-values : ${{ env.PHP_INI_VALUES }}
73
80
coverage : pcov
74
81
tools : pecl
75
- extensions : fileinfo, gd, imagick, json, mbstring
76
82
77
83
- name : " Install dependencies with composer"
78
84
uses : ramsey/composer-install@v3
79
85
80
- - name : " Run tests with phpunit "
86
+ - name : " Run tests with PHPUnit "
81
87
run : php vendor/bin/phpunit --colors=always --configuration=phpunit.xml.dist
82
88
83
89
- name : " Send code coverage report to Codecov.io"
@@ -105,10 +111,11 @@ jobs:
105
111
- name : " Install PHP"
106
112
uses : shivammathur/setup-php@v2
107
113
with :
108
- php-version : " 8.2"
114
+ php-version : " 8.3"
115
+ extensions : ${{ env.PHP_EXTENSIONS }}
116
+ ini-values : ${{ env.PHP_INI_VALUES }}
109
117
coverage : none
110
118
tools : phpDocumentor
111
- extensions : fileinfo, gd, imagick, json, mbstring
112
119
113
120
- name : " Build API docs"
114
121
run : phpdoc --config=phpdoc.xml.dist
@@ -133,7 +140,9 @@ jobs:
133
140
- name : " Install PHP"
134
141
uses : shivammathur/setup-php@v2
135
142
with :
136
- php-version : " 8.2"
143
+ php-version : " 8.3"
144
+ extensions : ${{ env.PHP_EXTENSIONS }}
145
+ ini-values : ${{ env.PHP_INI_VALUES }}
137
146
coverage : none
138
147
139
148
- name : " Install Sphinx"
0 commit comments