File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v3
10
- - uses : php-actions/composer@v6
11
- - uses : php-actions/phpunit@v3
10
+ - name : setup PHP
11
+ uses : shivammathur/setup-php@v2
12
+ with :
13
+ php-version : " 8.3"
14
+ # php extensions also listed in tools/docker-dev/web/Dockerfile
15
+ extensions :
16
+ - curl
17
+ - mysql
18
+ - ldap
19
+ - pdo
20
+ - redis
21
+ - cli
22
+ tools : composer:v2
23
+ - name : Install dependencies
24
+ run : composer install --prefer-dist --no-progress
25
+ - name : Run PHPUnit tests
26
+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM ubuntu:20.04
2
2
3
3
# Web Server Setup
4
4
ARG DEBIAN_FRONTEND=noninteractive
5
+ # php extensions also listed in .github/workflows/phpunit.yml
5
6
RUN apt-get update && apt-get install -y \
6
7
apache2 \
7
8
apache2-utils \
@@ -23,4 +24,4 @@ RUN sed -i '/display_errors/c\display_errors = on' /etc/php/7.4/apache2/php.ini
23
24
# Start apache2 server
24
25
EXPOSE 80
25
26
26
- CMD ["apache2ctl" , "-D" , "FOREGROUND" ]
27
+ CMD ["apache2ctl" , "-D" , "FOREGROUND" ]
You can’t perform that action at this time.
0 commit comments