File tree Expand file tree Collapse file tree 3 files changed +50
-40
lines changed Expand file tree Collapse file tree 3 files changed +50
-40
lines changed Original file line number Diff line number Diff line change 72
72
name : Infection report
73
73
path : infection.log
74
74
integration :
75
- name : Integration tests
75
+ name : Integration tests on PHP ${{ matrix.php }}
76
76
runs-on : ubuntu-20.04
77
+ strategy :
78
+ matrix :
79
+ php : [ '7.3', '7.4', '8.0.0RC5' ]
77
80
steps :
78
81
- name : Checkout
79
82
uses : actions/checkout@v2.3.4
@@ -84,10 +87,16 @@ jobs:
84
87
docker-compose up -d
85
88
sleep 10
86
89
docker ps -a
90
+ env :
91
+ PHP_VERSION : ${{ matrix.php }}
87
92
- name : Tests with Redis
88
93
run : docker-compose exec -T phpunit env ADAPTER=redis vendor/bin/phpunit --testsuite=functionnal
94
+ env :
95
+ PHP_VERSION : ${{ matrix.php }}
89
96
- name : Tests with APCU
90
97
run : docker-compose exec -T phpunit env ADAPTER=apcu vendor/bin/phpunit --testsuite=functionnal
98
+ env :
99
+ PHP_VERSION : ${{ matrix.php }}
91
100
code_quality :
92
101
name : Code quality
93
102
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change 1
- nginx :
2
- build : nginx/
3
- links :
4
- - php-fpm
5
- ports :
6
- - 8080:80
1
+ version : " 2"
7
2
8
- php-fpm :
9
- build : php-fpm/
10
- volumes :
11
- - .:/var/www/html
12
- links :
13
- - redis
14
- - pushgateway
15
- environment :
16
- - REDIS_HOST=redis
17
-
18
- redis :
19
- image : redis
20
- ports :
21
- - 6379:6379
22
-
23
- pushgateway :
24
- image : prom/pushgateway
25
- ports :
26
- - 9091:9091
27
-
28
- phpunit :
29
- build : php-fpm/
30
- volumes :
31
- - .:/var/www/html
32
- links :
33
- - redis
34
- - pushgateway
35
- - nginx
36
- environment :
37
- - REDIS_HOST=redis
3
+ services :
4
+ nginx :
5
+ build :
6
+ context : nginx/
7
+ depends_on :
8
+ - php-fpm
9
+ php-fpm :
10
+ build :
11
+ context : php-fpm/
12
+ args :
13
+ PHP_VERSION : ${PHP_VERSION:-7.3}
14
+ volumes :
15
+ - .:/var/www/html
16
+ environment :
17
+ - REDIS_HOST=redis
18
+ depends_on :
19
+ - redis
20
+ - pushgateway
21
+ redis :
22
+ image : redis
23
+ pushgateway :
24
+ image : prom/pushgateway
25
+ phpunit :
26
+ build :
27
+ context : php-fpm/
28
+ args :
29
+ PHP_VERSION : ${PHP_VERSION:-7.3}
30
+ volumes :
31
+ - .:/var/www/html
32
+ environment :
33
+ - REDIS_HOST=redis
34
+ depends_on :
35
+ - nginx
36
+ - pushgateway
37
+ - redis
Original file line number Diff line number Diff line change 1
- FROM php:7.3-fpm
1
+ ARG PHP_VERSION
2
+ FROM php:${PHP_VERSION}-fpm
2
3
3
- RUN pecl install redis-5.0 .2 && \
4
- pecl install apcu-5.1.17 && \
4
+ RUN pecl install redis-5.3 .2 && \
5
+ pecl install apcu-5.1.19 && \
5
6
docker-php-ext-enable redis apcu
6
7
7
8
COPY www.conf /usr/local/etc/php-fpm.d/
You can’t perform that action at this time.
0 commit comments