Skip to content

Commit

Permalink
Merge pull request #3071 from stof/update_ci
Browse files Browse the repository at this point in the history
Update the CI setup
  • Loading branch information
stof authored Jun 24, 2024
2 parents 05480c5 + bcf3712 commit ca1c894
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- master
- 2.x
- 3.x

jobs:
run:
Expand All @@ -18,6 +19,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
symfony-versions: [false]
include:
- description: 'Symfony 4.*'
Expand All @@ -26,26 +28,34 @@ jobs:
- description: 'Symfony 5.*'
php: '8.1'
symfony-versions: '^5.4'
- description: 'Symfony 6.*'
php: '8.2'
symfony-versions: '^6.4'
name: PHP ${{ matrix.php }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
key: composer-${{ matrix.php }}-${{ matrix.symfony-versions }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-
composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
- name: Install symfony/flex
run: composer config --global --no-plugins allow-plugins.symfony/flex true && composer global require symfony/flex
if: matrix.symfony-versions

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: composer install

- name: Install PHPUnit
Expand Down

0 comments on commit ca1c894

Please sign in to comment.