Skip to content

Commit 07e77b0

Browse files
authored
Merge pull request #521 from FriendsOfSymfony/fix-php72-build
run php 7.2 build on older ubuntu
2 parents 5b65887 + 6b8a887 commit 07e77b0

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
include:
24-
- php: '7.2'
2524
- php: '7.3'
2625
- php: '7.4'
2726
env:
@@ -58,6 +57,35 @@ jobs:
5857
- name: Execute tests
5958
run: vendor/bin/simple-phpunit -v
6059

60+
legacyPHP:
61+
name: PHP 7.2 Varnish 6
62+
runs-on: ubuntu-18.04
63+
64+
steps:
65+
- name: Setup PHP
66+
uses: shivammathur/setup-php@v2
67+
with:
68+
php-version: 7.2
69+
tools: composer:v2
70+
coverage: none
71+
72+
- name: Checkout code
73+
uses: actions/checkout@v2
74+
75+
- name: Setup Varnish and Nginx
76+
run: |
77+
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-varnish.sh
78+
sh ${GITHUB_WORKSPACE}/.github/workflows/setup-nginx.sh
79+
80+
- name: Install composer dependencies
81+
run: |
82+
composer require --no-update ${DEPENDENCIES}
83+
composer update --prefer-dist --no-interaction --no-progress
84+
vendor/bin/simple-phpunit install
85+
86+
- name: Execute tests
87+
run: vendor/bin/simple-phpunit -v
88+
6189
varnish5:
6290
name: PHP ${{ matrix.php }} Legacy Varnish 5
6391
runs-on: ubuntu-18.04

0 commit comments

Comments
 (0)