19
19
20
20
env :
21
21
# All versions should be declared here
22
- PHALCON_VERSION : 5.0.0
22
+ PHALCON_VERSION : 5.0.2
23
23
24
24
# For tests
25
25
LANG : en_US.UTF-8
26
26
LANGUAGE : en_US.UTF-8
27
27
LC_ALL : en_US.UTF-8
28
28
29
- # Windows specific
30
- TOOLS_DIR : ' C:\tools'
31
-
32
29
# PHP extensions required by Composer
33
- EXTENSIONS : apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, sqlite3, yaml, redis, :memcache
30
+ # (adding phalcon version here until I figure out how to use the variable above)
31
+ EXTENSIONS : apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, phalcon-5.0.2, sqlite3, yaml, redis, :memcache
34
32
35
33
jobs :
36
34
phpcs :
@@ -45,32 +43,13 @@ jobs:
45
43
run : docker run --rm -v $(pwd):/data cytopia/phpcs --standard=./phpcs.xml
46
44
47
45
build-and-test :
48
- name : tests / PHP-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}
46
+ name : tests / PHP-${{ matrix.php }}
49
47
50
- runs-on : ${{ matrix.os }}
48
+ runs-on : ubuntu-latest
51
49
strategy :
52
50
fail-fast : false
53
51
matrix :
54
52
php : [ '7.4', '8.0', '8.1' ]
55
- ts : [ 'nts', 'ts' ]
56
- arch : [ 'x64' ]
57
-
58
- name :
59
- - ubuntu-gcc
60
- - macos-clang
61
-
62
- # matrix names should be in next format:
63
- # {php}-{ts}-{os.name}-{compiler}-{arch}
64
- include :
65
- # Linux
66
- - { name: ubuntu-gcc, os: ubuntu-18.04, compiler: gcc }
67
- # macOS
68
- - { name: macos-clang, os: macos-10.15, compiler: clang }
69
- # Windows
70
- - { php: '7.4', ts: 'ts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
71
- - { php: '7.4', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
72
- - { php: '8.0', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
73
- - { php: '8.0', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
74
53
75
54
steps :
76
55
- uses : actions/checkout@v2
79
58
shell : pwsh
80
59
run : |
81
60
git config --global core.autocrlf false
82
- $SessionSavePath = if ("${{ runner.os }}" -eq "Windows") { 'C:\temp' } else { ' /tmp' }
61
+ $SessionSavePath = ' /tmp'
83
62
Write-Output "SESSION_SAVE_PATH=$SessionSavePath" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
84
63
85
64
- name : Setup PHP
91
70
tools : pecl, phpize, php-config, composer:v2
92
71
coverage : xdebug
93
72
env :
94
- PHPTS : ${{ matrix.ts }}
95
73
COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
96
74
97
75
- name : Validate composer
@@ -114,14 +92,18 @@ jobs:
114
92
- name : Setup Tests
115
93
shell : bash
116
94
run : |
117
- if [ "${{ runner.os }}" = "Linux" ]; then
118
- ./config/ci/linux-setup-locales.sh
119
- fi
120
-
121
- cp tests/_config/.env.default .env
95
+ cp config/.env.default .env
122
96
vendor/bin/codecept build
123
97
# php tests/_config/generate-db-schemas.php
124
98
125
99
- name : Run Unit Tests
126
100
if : always()
127
101
run : vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php }}.xml --ext DotReporter unit
102
+
103
+ - name : Upload coverage to Codecov
104
+ if : success()
105
+ uses : codecov/codecov-action@v3
106
+ with :
107
+ token : ${{secrets.CODECOV_TOKEN}}
108
+ directory : ./tests/_output/
109
+ files : coverage-7.4.xml,coverage-8.0.xml,coverage-8.1.xml
0 commit comments