Skip to content

Commit

Permalink
Merge pull request #58 from clue/php8.1
Browse files Browse the repository at this point in the history
Support PHP 8.1
  • Loading branch information
SimonFrings authored Nov 22, 2021
2 parents d047b79 + bc3c125 commit 08f7943
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- ubuntu-20.04
- windows-2019
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand All @@ -37,6 +38,7 @@ jobs:
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand All @@ -54,10 +56,11 @@ jobs:

nginx-webserver:
name: nginx + PHP-FPM (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand All @@ -70,16 +73,20 @@ jobs:
php-version: ${{ matrix.php }}
- run: composer install --no-dev
- run: docker run -d -v "$PWD":/home/framework-x php:${{ matrix.php }}-fpm
if: ${{ matrix.php != 8.1 }}
- run: docker run -d -v "$PWD":/home/framework-x php:8.1.0RC6-fpm
if: ${{ matrix.php == 8.1 }}
- run: docker run -d -p 80:80 --link $(docker ps -qn1):php -v "$PWD":/home/framework-x -v "$PWD"/examples/nginx/nginx.conf:/etc/nginx/conf.d/default.conf nginx:stable-alpine
- run: bash tests/await.sh http://localhost
- run: bash tests/acceptance.sh http://localhost

Apache-webserver:
name: Apache webserver (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand All @@ -92,6 +99,9 @@ jobs:
php-version: ${{ matrix.php }}
- run: composer install --no-dev
- run: docker run -d -p 80:80 -v "$PWD":/home/framework-x php:${{ matrix.php }}-apache sh -c "rmdir /var/www/html;ln -s /home/framework-x/examples/apache /var/www/html;ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled; apache2-foreground"
if: ${{ matrix.php != 8.1 }}
- run: docker run -d -p 80:80 -v "$PWD":/home/framework-x php:8.1.0RC6-apache sh -c "rmdir /var/www/html;ln -s /home/framework-x/examples/apache /var/www/html;ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled; apache2-foreground"
if: ${{ matrix.php == 8.1 }}
- run: bash tests/await.sh http://localhost
- run: bash tests/acceptance.sh http://localhost

Expand All @@ -101,6 +111,7 @@ jobs:
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand Down

0 comments on commit 08f7943

Please sign in to comment.