11
11
12
12
name : " CI"
13
13
14
+ env :
15
+ PHP_EXTENSIONS : curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
16
+ PHP_INI_VALUES : memory_limit=-1, error_reporting=-1, display_errors=On
17
+
14
18
jobs :
15
19
16
20
static-code-analysis :
38
42
uses : shivammathur/setup-php@v2
39
43
with :
40
44
php-version : ${{ matrix.php-version }}
41
- tools : pecl
45
+ extensions : ast, ${{ env.PHP_EXTENSIONS }}
46
+ ini-values : ${{ env.PHP_INI_VALUES }}
42
47
coverage : none
43
- extensions : ast, curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
44
48
45
49
- name : " Update dependencies with composer"
46
50
uses : ramsey/composer-install@v3
49
53
run : php vendor/bin/phan --target-php-version=${{ matrix.php-version }}
50
54
51
55
52
- build-docs :
53
- name : " Build and publish Docs"
54
-
55
- runs-on : ubuntu-latest
56
-
57
- steps :
58
- - name : " Checkout sources"
59
- uses : actions/checkout@v4
60
-
61
- - name : " Install PHP"
62
- uses : shivammathur/setup-php@v2
63
- with :
64
- php-version : " 8.1"
65
- tools : phpDocumentor
66
- coverage : none
67
- extensions : curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
68
-
69
- - name : " Build Docs"
70
- run : phpdoc --config=phpdoc.xml.dist
71
-
72
- - name : " Publish Docs to gh-pages"
73
- uses : JamesIves/github-pages-deploy-action@v4
74
- with :
75
- BRANCH : gh-pages
76
- FOLDER : docs
77
- CLEAN : true
78
-
79
-
80
56
tests :
81
57
name : " Unit Tests"
82
58
needs : static-code-analysis
104
80
uses : shivammathur/setup-php@v2
105
81
with :
106
82
php-version : ${{ matrix.php-version }}
83
+ extensions : ${{ env.PHP_EXTENSIONS }}
84
+ ini-values : ${{ env.PHP_INI_VALUES }}
107
85
coverage : pcov
108
- extensions : curl, fileinfo, intl, json, mbstring, simplexml, sodium, zlib
109
86
110
87
- name : " Install dependencies with composer"
111
88
uses : ramsey/composer-install@v3
@@ -124,3 +101,31 @@ jobs:
124
101
with :
125
102
project-token : ${{ secrets.CODACY_PROJECT_TOKEN }}
126
103
coverage-reports : .build/coverage/clover.xml
104
+
105
+
106
+ build-docs :
107
+ name : " Build and publish Docs"
108
+
109
+ runs-on : ubuntu-latest
110
+
111
+ steps :
112
+ - name : " Checkout sources"
113
+ uses : actions/checkout@v4
114
+
115
+ - name : " Install PHP"
116
+ uses : shivammathur/setup-php@v2
117
+ with :
118
+ php-version : " 8.3"
119
+ tools : phpDocumentor
120
+ extensions : simplexml
121
+ coverage : none
122
+
123
+ - name : " Build Docs"
124
+ run : phpdoc --config=phpdoc.xml.dist
125
+
126
+ - name : " Publish Docs to gh-pages"
127
+ uses : JamesIves/github-pages-deploy-action@v4
128
+ with :
129
+ BRANCH : gh-pages
130
+ FOLDER : docs
131
+ CLEAN : true
0 commit comments