9
9
- ' **.txt'
10
10
pull_request :
11
11
12
+ env :
13
+ ZEPHIR_PARSER_VERSION : v1.3.6
14
+ ZEPHIR_VERSION : 0.14.0-beta.3
15
+ LANG : en_US.UTF-8
16
+ LANGUAGE : en_US.UTF-8
17
+ LC_ALL : en_US.UTF-8
18
+
12
19
jobs :
13
20
generate :
14
21
# To prevent build a particular commit use
19
26
name : Build Phalcon Pecl Package
20
27
steps :
21
28
22
- - name : Setup Environment Variables
23
- run : |
24
- echo "ZEPHIR_PARSER_VERSION=v1.3.6" >> $GITHUB_ENV
25
- echo "ZEPHIR_VERSION=0.13.4" >> $GITHUB_ENV
26
- echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
27
- echo "LANGUAGE=en_US.UTF-8" >> $GITHUB_ENV
28
- echo "LC_ALL=en_US.UTF-8" >> $GITHUB_ENV
29
-
30
29
- name : Setup PHP
31
30
uses : shivammathur/setup-php@v2
32
31
with :
36
35
env :
37
36
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
37
39
- - name : Common Settings
40
- run : |
41
- # Core dump settings
42
- ulimit -c unlimited -S || true
43
-
44
- # Hide "You are in 'detached HEAD' state" message
45
- git config --global advice.detachedHead false
46
-
47
38
- name : Checkout Code
48
39
uses : actions/checkout@v2
49
40
with :
@@ -139,12 +130,14 @@ jobs:
139
130
140
131
name : PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
141
132
steps :
142
-
143
133
- name : Checkout Code
144
134
uses : actions/checkout@v2
145
135
with :
146
136
fetch-depth : 1
147
137
138
+ - name : Validate composer
139
+ run : composer validate --no-check-all --no-check-publish
140
+
148
141
- name : Get Composer Cache Directory
149
142
id : composer-cache
150
143
run : |
@@ -162,7 +155,7 @@ jobs:
162
155
with :
163
156
php-version : ${{ matrix.php-versions }}
164
157
extensions : mbstring, intl, json, imagick, gd, gettext, igbinary, apcu, msgpack, memcached, yaml, redis
165
- ini-values : apc.enable_cli=on, session.save_path=/tmp, extension=psr.so, extension=phalcon.so
158
+ ini-values : apc.enable_cli=on, session.save_path=/tmp
166
159
tools : pecl
167
160
env :
168
161
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -202,26 +195,26 @@ jobs:
202
195
203
196
- name : Run Unit Tests
204
197
if : always()
205
- run : vendor/bin/codecept run --ext DotReporter unit
198
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter unit
206
199
207
200
- name : Run CLI Tests
208
201
if : always()
209
- run : vendor/bin/codecept run --ext DotReporter cli
202
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter cli
210
203
211
204
- name : Run Integration Tests
212
205
env :
213
206
DATA_REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
214
207
DATA_MEMCACHED_PORT : ${{ job.services.memcached.ports['11211'] }}
215
208
if : always()
216
- run : vendor/bin/codecept run --ext DotReporter integration
209
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter integration
217
210
218
211
- name : Run Database Tests (Common)
219
212
env :
220
213
DATA_REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
221
214
DATA_MEMCACHED_PORT : ${{ job.services.memcached.ports['11211'] }}
222
215
DATA_MYSQL_USER : root
223
216
if : always()
224
- run : vendor/bin/codecept run --ext DotReporter database -g common
217
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter database -g common
225
218
226
219
- name : Run Database Tests (MySQL)
227
220
env :
@@ -230,14 +223,14 @@ jobs:
230
223
DATA_MEMCACHED_PORT : ${{ job.services.memcached.ports['11211'] }}
231
224
DATA_MYSQL_USER : root
232
225
if : always()
233
- run : vendor/bin/codecept run --ext DotReporter database --env mysql -g mysql
226
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter database --env mysql -g mysql
234
227
235
228
- name : Run Database Tests (Sqlite)
236
229
env :
237
230
DATA_REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
238
231
DATA_MEMCACHED_PORT : ${{ job.services.memcached.ports['11211'] }}
239
232
if : always()
240
- run : vendor/bin/codecept run --ext DotReporter database --env sqlite -g sqlite
233
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter database --env sqlite -g sqlite
241
234
242
235
- name : Run Database Tests (Postgres)
243
236
env :
@@ -246,25 +239,31 @@ jobs:
246
239
DATA_REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
247
240
DATA_MEMCACHED_PORT : ${{ job.services.memcached.ports['11211'] }}
248
241
if : always()
249
- run : vendor/bin/codecept run --ext DotReporter database --env pgsql -g pgsql
242
+ run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml -- ext DotReporter database --env pgsql -g pgsql
250
243
251
244
# - name: Run Database Tests (SQL Server)
252
245
# env:
253
246
# DATA_REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
254
247
# DATA_MEMCACHED_PORT: ${{ job.services.memcached.ports['11211'] }}
255
248
# run: vendor/bin/codecept run --ext DotReporter database --env sqlsrv
256
249
250
+ - name : Upload Code Coverage on 7.4
251
+ uses : codecov/codecov-action@v1
252
+ with :
253
+ token : ${{ secrets.CODECOV_TOKEN }}
254
+ file : ./tests/_output/coverage-*.xml
255
+
257
256
build-and-test-macos :
258
257
# To prevent build a particular commit use
259
- # git commit -m "......... [ci skip]"
258
+ # git commit -m "......... [ci skip]"
260
259
if : " !contains(github.event.head_commit.message, 'ci skip')"
261
260
262
261
needs : generate
263
262
runs-on : ${{ matrix.operating-system }}
264
263
env :
265
264
extensions : mbstring, intl, json, yaml, apcu, imagick, gd, gettext, igbinary, msgpack, redis, zip
266
265
HOMEBREW_NO_INSTALL_CLEANUP : 1
267
- # ext_cache_key: v5.0.0-alpha.2 -macOS-2
266
+ ext_cache_key : v5.0.0-alpha.3 -macOS-2
268
267
strategy :
269
268
fail-fast : false
270
269
matrix :
@@ -302,16 +301,16 @@ jobs:
302
301
env :
303
302
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
304
303
305
- # - name: Get composer cache directory
306
- # id: composer-cache
307
- # run: echo "::set-output name=dir::$(composer config cache-files-dir)"
304
+ - name : Get composer cache directory
305
+ id : composer-cache
306
+ run : echo "::set-output name=dir::$(composer config cache-files-dir)"
308
307
309
- # - name: Cache dependencies
310
- # uses: actions/cache@v2
311
- # with:
312
- # path: ${{ steps.composer-cache.outputs.dir }}
313
- # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
314
- # restore-keys: ${{ runner.os }}-composer-
308
+ - name : Cache dependencies
309
+ uses : actions/cache@v2
310
+ with :
311
+ path : ${{ steps.composer-cache.outputs.dir }}
312
+ key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
313
+ restore-keys : ${{ runner.os }}-composer-
315
314
316
315
- name : Download Phalcon Pecl Package
317
316
uses : actions/download-artifact@v1
@@ -345,7 +344,7 @@ jobs:
345
344
346
345
build-and-test-windows :
347
346
# To prevent build a particular commit use
348
- # git commit -m "......... [ci skip]"
347
+ # git commit -m "......... [ci skip]"
349
348
if : " !contains(github.event.head_commit.message, 'ci skip')"
350
349
351
350
name : PHP ${{ matrix.php-versions }} (${{ matrix.arch }}-${{ matrix.ts }}) Test on ${{ matrix.operating-system }}
@@ -402,7 +401,7 @@ jobs:
402
401
403
402
# FIXME: phpversion() return 7.4.3 but windows.php.net has only 7.4.4
404
403
# We should parse the following file to get the correct version:
405
- # https://windows.php.net/downloads/releases/sha256sum.txt
404
+ # https://windows.php.net/downloads/releases/sha256sum.txt
406
405
If ("${{ matrix.php-versions }}" -eq "7.4") {
407
406
Write-Output "PHP_VERSION=7.4.4" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
408
407
} Else {
@@ -416,7 +415,7 @@ jobs:
416
415
Write-Output "PACKAGE_PREFIX=phalcon" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
417
416
Write-Output "EXTENSION_NAME=phalcon" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
418
417
Write-Output "EXTENSION_FILE=php_phalcon.dll" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
419
- Write-Output "PHALCON_VERSION=5.0.0alpha3 " | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
418
+ Write-Output "PHALCON_VERSION=5.0.0alpha4 " | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
420
419
Write-Output "PHPTS=${{ matrix.ts }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
421
420
If ("${{ matrix.ts }}" -eq "nts") {
422
421
Write-Output "BUILD_TYPE=nts-${{ matrix.build_type }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
@@ -619,7 +618,7 @@ jobs:
619
618
id : get-version
620
619
run : |
621
620
echo ::set-output name=version::${GITHUB_REF#refs/tags/}
622
- echo ::set-output name=release_body::${ .ci/release-notes.sh CHANGELOG-5.0.md}
621
+ echo ::set-output name=release_body::$( .ci/release-notes.sh CHANGELOG-5.0.md)
623
622
624
623
- name : Download Phalcon build artifacts
625
624
id : download
0 commit comments