Skip to content

Commit 650739e

Browse files
committed
Merge branch 'updates' into development
2 parents c4aaf1c + 1955508 commit 650739e

File tree

3 files changed

+85
-6
lines changed

3 files changed

+85
-6
lines changed

.github/workflows/tests.yml

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313

1414
strategy:
1515
fail-fast: true
16-
matrix:
17-
php: ['8.1']
1816

1917
services:
2018
mariadb:
@@ -36,16 +34,16 @@ jobs:
3634
ports:
3735
- 6379:6379
3836

39-
name: PHP ${{ matrix.php }}
37+
name: PHP 8.1
4038

4139
steps:
4240
- name: Checkout
43-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4442

4543
- name: Setup PHP
4644
uses: shivammathur/setup-php@v2
4745
with:
48-
php-version: ${{ matrix.php }}
46+
php-version: 8.1
4947
tools: composer
5048
coverage: xdebug
5149

@@ -84,4 +82,54 @@ jobs:
8482
cp build/coverage/clover.xml build/logs/clover.xml
8583
composer global require php-coveralls/php-coveralls
8684
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

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ test:php:
2222
MYSQL_DATABASE: framework-tests
2323
MYSQL_ROOT_PASSWORD: password
2424
before_script:
25+
- php -v
2526
- composer update
2627
script:
2728
- composer normalize --dry-run --indent-size=4 --indent-style=space
@@ -36,6 +37,27 @@ test:php:
3637
- build/docs/
3738
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
3839

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+
3961
pages:
4062
stage: deploy
4163
timeout: 10 minutes

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ services:
99
depends_on:
1010
- mariadb
1111
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
1221
mariadb:
1322
image: mariadb
1423
restart: always

0 commit comments

Comments
 (0)