Skip to content

Commit

Permalink
Merge pull request #521 from FriendsOfSymfony/fix-php72-build
Browse files Browse the repository at this point in the history
run php 7.2 build on older ubuntu
  • Loading branch information
dbu authored Jan 25, 2022
2 parents 5b65887 + 6b8a887 commit 07e77b0
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
fail-fast: false
matrix:
include:
- php: '7.2'
- php: '7.3'
- php: '7.4'
env:
Expand Down Expand Up @@ -58,6 +57,35 @@ jobs:
- name: Execute tests
run: vendor/bin/simple-phpunit -v

legacyPHP:
name: PHP 7.2 Varnish 6
runs-on: ubuntu-18.04

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
tools: composer:v2
coverage: none

- name: Checkout code
uses: actions/checkout@v2

- name: Setup Varnish and Nginx
run: |
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish.sh
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
- name: Install composer dependencies
run: |
composer require --no-update ${DEPENDENCIES}
composer update --prefer-dist --no-interaction --no-progress
vendor/bin/simple-phpunit install
- name: Execute tests
run: vendor/bin/simple-phpunit -v

varnish5:
name: PHP ${{ matrix.php }} Legacy Varnish 5
runs-on: ubuntu-18.04
Expand Down

0 comments on commit 07e77b0

Please sign in to comment.