File tree 3 files changed +57
-8
lines changed
3 files changed +57
-8
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
tests :
11
11
runs-on : ubuntu-20.04
12
+ timeout-minutes : 10
12
13
13
14
strategy :
14
15
fail-fast : true
15
- matrix :
16
- php : ['8.1']
17
16
18
- name : PHP ${{ matrix.php }}
17
+ name : PHP 8.1
19
18
20
19
steps :
21
20
- name : Checkout
24
23
- name : Setup PHP
25
24
uses : shivammathur/setup-php@v2
26
25
with :
27
- php-version : ${{ matrix.php }}
26
+ php-version : 8.1
28
27
tools : composer
29
28
coverage : xdebug
30
29
46
45
47
46
- name : PHPStan
48
47
run :
49
- vendor/bin/phpstan analyse -vvv
48
+ vendor/bin/phpstan analyse --xdebug - vvv
50
49
51
50
- name : PHPUnit
52
51
run : vendor/bin/phpunit --verbose
59
58
cp build/coverage/clover.xml build/logs/clover.xml
60
59
composer global require php-coveralls/php-coveralls
61
60
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
Original file line number Diff line number Diff line change @@ -9,17 +9,19 @@ variables:
9
9
10
10
test:php :
11
11
stage : test
12
+ timeout : 10 minutes
12
13
cache :
13
14
paths :
14
15
- build/
15
16
- vendor/
16
17
before_script :
17
- - composer install
18
+ - php -v
19
+ - composer update
18
20
script :
19
21
- composer normalize --dry-run --indent-size=4 --indent-style=space
20
22
- vendor/bin/php-cs-fixer fix --diff --dry-run --verbose
21
23
- vendor/bin/phpmd src xml phpmd.xml
22
- - vendor/bin/phpstan analyse -vvv
24
+ - vendor/bin/phpstan analyse --xdebug - vvv
23
25
- vendor/bin/phpunit --colors=never
24
26
- phpdoc
25
27
artifacts :
@@ -28,8 +30,23 @@ test:php:
28
30
- build/docs/
29
31
coverage : ' /^\s*Lines:\s*\d+.\d+\%/'
30
32
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
+
31
47
pages :
32
48
stage : deploy
49
+ timeout : 10 minutes
33
50
dependencies :
34
51
- test:php
35
52
environment :
Original file line number Diff line number Diff line change @@ -7,3 +7,10 @@ services:
7
7
volumes :
8
8
- .:/package
9
9
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
You can’t perform that action at this time.
0 commit comments