Skip to content

Commit bc600ad

Browse files
committed
Merge branch 'php-last' into 22.x
2 parents e6be625 + 9b6a25d commit bc600ad

File tree

3 files changed

+57
-8
lines changed

3 files changed

+57
-8
lines changed

.github/workflows/tests.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ on:
99
jobs:
1010
tests:
1111
runs-on: ubuntu-20.04
12+
timeout-minutes: 10
1213

1314
strategy:
1415
fail-fast: true
15-
matrix:
16-
php: ['8.1']
1716

18-
name: PHP ${{ matrix.php }}
17+
name: PHP 8.1
1918

2019
steps:
2120
- name: Checkout
@@ -24,7 +23,7 @@ jobs:
2423
- name: Setup PHP
2524
uses: shivammathur/setup-php@v2
2625
with:
27-
php-version: ${{ matrix.php }}
26+
php-version: 8.1
2827
tools: composer
2928
coverage: xdebug
3029

@@ -46,7 +45,7 @@ jobs:
4645

4746
- name: PHPStan
4847
run:
49-
vendor/bin/phpstan analyse -vvv
48+
vendor/bin/phpstan analyse --xdebug -vvv
5049

5150
- name: PHPUnit
5251
run: vendor/bin/phpunit --verbose
@@ -59,4 +58,30 @@ jobs:
5958
cp build/coverage/clover.xml build/logs/clover.xml
6059
composer global require php-coveralls/php-coveralls
6160
php-coveralls --coverage_clover=build/logs/clover.xml -v
62-
if: matrix.php == '8.1'
61+
62+
tests-last:
63+
runs-on: ubuntu-20.04
64+
timeout-minutes: 10
65+
66+
strategy:
67+
fail-fast: true
68+
69+
name: PHP 8.2 - Last
70+
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v2
74+
75+
- name: Setup PHP
76+
uses: shivammathur/setup-php@v2
77+
with:
78+
php-version: 8.2
79+
tools: composer
80+
coverage: xdebug
81+
82+
- name: Install dependencies
83+
run:
84+
composer update
85+
86+
- name: PHPUnit
87+
run: vendor/bin/phpunit --verbose

.gitlab-ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ variables:
99

1010
test:php:
1111
stage: test
12+
timeout: 10 minutes
1213
cache:
1314
paths:
1415
- build/
1516
- vendor/
1617
before_script:
17-
- composer install
18+
- php -v
19+
- composer update
1820
script:
1921
- composer normalize --dry-run --indent-size=4 --indent-style=space
2022
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
2123
- vendor/bin/phpmd src xml phpmd.xml
22-
- vendor/bin/phpstan analyse -vvv
24+
- vendor/bin/phpstan analyse --xdebug -vvv
2325
- vendor/bin/phpunit --colors=never
2426
- phpdoc
2527
artifacts:
@@ -28,8 +30,23 @@ test:php:
2830
- build/docs/
2931
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
3032

33+
test:php-last:
34+
image: registry.gitlab.com/aplus-framework/images/base:3
35+
stage: test
36+
timeout: 10 minutes
37+
cache:
38+
paths:
39+
- vendor/
40+
before_script:
41+
- php -v
42+
- composer update
43+
script:
44+
- vendor/bin/phpunit --colors=never
45+
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
46+
3147
pages:
3248
stage: deploy
49+
timeout: 10 minutes
3350
dependencies:
3451
- test:php
3552
environment:

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ services:
77
volumes:
88
- .:/package
99
tty: true
10+
package-last:
11+
image: registry.gitlab.com/aplus-framework/images/package:3
12+
container_name: package-framework-last
13+
working_dir: /package
14+
volumes:
15+
- .:/package
16+
tty: true

0 commit comments

Comments
 (0)