File tree Expand file tree Collapse file tree 3 files changed +85
-6
lines changed Expand file tree Collapse file tree 3 files changed +85
-6
lines changed Original file line number Diff line number Diff line change 13
13
14
14
strategy :
15
15
fail-fast : true
16
- matrix :
17
- php : ['8.1']
18
16
19
17
services :
20
18
mariadb :
@@ -36,16 +34,16 @@ jobs:
36
34
ports :
37
35
- 6379:6379
38
36
39
- name : PHP ${{ matrix.php }}
37
+ name : PHP 8.1
40
38
41
39
steps :
42
40
- name : Checkout
43
- uses : actions/checkout@v2
41
+ uses : actions/checkout@v3
44
42
45
43
- name : Setup PHP
46
44
uses : shivammathur/setup-php@v2
47
45
with :
48
- php-version : ${{ matrix.php }}
46
+ php-version : 8.1
49
47
tools : composer
50
48
coverage : xdebug
51
49
84
82
cp build/coverage/clover.xml build/logs/clover.xml
85
83
composer global require php-coveralls/php-coveralls
86
84
php-coveralls --coverage_clover=build/logs/clover.xml -v
87
- if : matrix.php == '8.1'
85
+
86
+ tests-last :
87
+ runs-on : ubuntu-20.04
88
+ timeout-minutes : 10
89
+
90
+ strategy :
91
+ fail-fast : true
92
+
93
+ services :
94
+ mariadb :
95
+ image : mariadb
96
+ env :
97
+ MYSQL_DATABASE : framework-tests
98
+ MYSQL_ROOT_PASSWORD : password
99
+ ports :
100
+ - 3306:3306
101
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
102
+
103
+ memcached :
104
+ image : memcached
105
+ ports :
106
+ - 11211:11211
107
+
108
+ redis :
109
+ image : redis
110
+ ports :
111
+ - 6379:6379
112
+
113
+ name : PHP 8.2 - Last
114
+
115
+ steps :
116
+ - name : Checkout
117
+ uses : actions/checkout@v3
118
+
119
+ - name : Setup PHP
120
+ uses : shivammathur/setup-php@v2
121
+ with :
122
+ php-version : 8.2
123
+ tools : composer
124
+ coverage : xdebug
125
+
126
+ - name : Install dependencies
127
+ run :
128
+ composer update
129
+
130
+ - name : PHPUnit
131
+ env :
132
+ DB_HOST : 127.0.0.1
133
+ MEMCACHED_HOST : 127.0.0.1
134
+ REDIS_HOST : 127.0.0.1
135
+ run : vendor/bin/phpunit --verbose
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ test:php:
22
22
MYSQL_DATABASE : framework-tests
23
23
MYSQL_ROOT_PASSWORD : password
24
24
before_script :
25
+ - php -v
25
26
- composer update
26
27
script :
27
28
- composer normalize --dry-run --indent-size=4 --indent-style=space
@@ -36,6 +37,27 @@ test:php:
36
37
- build/docs/
37
38
coverage : ' /^\s*Lines:\s*\d+.\d+\%/'
38
39
40
+ test:php-last :
41
+ image : registry.gitlab.com/aplus-framework/images/base:3
42
+ stage : test
43
+ timeout : 10 minutes
44
+ cache :
45
+ paths :
46
+ - vendor/
47
+ services :
48
+ - mariadb
49
+ - memcached
50
+ - redis
51
+ variables :
52
+ MYSQL_DATABASE : framework-tests
53
+ MYSQL_ROOT_PASSWORD : password
54
+ before_script :
55
+ - php -v
56
+ - composer update
57
+ script :
58
+ - vendor/bin/phpunit --colors=never
59
+ coverage : ' /^\s*Lines:\s*\d+.\d+\%/'
60
+
39
61
pages :
40
62
stage : deploy
41
63
timeout : 10 minutes
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ services:
9
9
depends_on :
10
10
- mariadb
11
11
tty : true
12
+ package-last :
13
+ image : registry.gitlab.com/aplus-framework/images/package:3
14
+ container_name : package-mvc-last
15
+ working_dir : /package
16
+ volumes :
17
+ - .:/package
18
+ depends_on :
19
+ - mariadb
20
+ tty : true
12
21
mariadb :
13
22
image : mariadb
14
23
restart : always
You can’t perform that action at this time.
0 commit comments