Skip to content

Commit

Permalink
add symfony 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mhor committed Feb 14, 2024
1 parent 19aa62a commit e6b2e65
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 79 deletions.
167 changes: 91 additions & 76 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,124 +6,139 @@ on:
branches:
- master
env:
LANG: "en_US.UTF-8"
LANG: "en_US.UTF-8"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]

name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
- run: composer install --no-progress
- run: vendor/bin/phpunit
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
- run: composer install --no-progress
- run: vendor/bin/phpunit

test_lowest_dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
coverage: none
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
coverage: none

- run: composer update --no-progress --prefer-lowest
- run: vendor/bin/phpunit
- run: composer update --no-progress --prefer-lowest
- run: vendor/bin/phpunit
test_symfony_34:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:3.4.* symfony/filesystem:3.4.*
- run: vendor/bin/phpunit
- uses: shivammathur/setup-php@v2
with:
php-version: 7.2
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:3.4.* symfony/filesystem:3.4.*
- run: vendor/bin/phpunit
test_symfony_40:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 7.3
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:4.0.* symfony/filesystem:4.0.*
- run: vendor/bin/phpunit
- uses: shivammathur/setup-php@v2
with:
php-version: 7.3
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:4.0.* symfony/filesystem:4.0.*
- run: vendor/bin/phpunit
test_symfony_44:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:4.4.* symfony/filesystem:4.4.*
- run: vendor/bin/phpunit
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:4.4.* symfony/filesystem:4.4.*
- run: vendor/bin/phpunit
test_symfony_5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:~5.0 symfony/filesystem:~5.0
- run: vendor/bin/phpunit
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:~5.0 symfony/filesystem:~5.0
- run: vendor/bin/phpunit
test_symfony_60:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:~6.0 symfony/filesystem:~6.0
- run: vendor/bin/phpunit
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:~6.0 symfony/filesystem:~6.0
- run: vendor/bin/phpunit
test_symfony_70:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git fetch --depth=100000 origin

# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none

- run: composer install
- run: composer require --no-interaction --prefer-source symfony/process:~7.0 symfony/filesystem:~7.0
- run: vendor/bin/phpunit
ecs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none

- run: composer install --no-progress
- run: composer require symplify/easy-coding-standard --dev
- run: vendor/bin/ecs check --ansi
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
coverage: none

- run: composer install --no-progress
- run: composer require symplify/easy-coding-standard --dev
- run: vendor/bin/ecs check --ansi
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
],
"require": {
"php": ">=7.2",
"symfony/process": "~3.4|~4.0|~5.0|~6.0",
"symfony/filesystem": "~3.4|~4.0|~5.0|~6.0"
},
"symfony/process": "~3.4|~4.0|~5.0|~6.0|~7.0",
"symfony/filesystem": "~3.4|~4.0|~5.0|~6.0|~7.0"
},
"require-dev": {
"phpunit/phpunit": "~8.5",
"phpspec/prophecy": "^1.15"
Expand Down

0 comments on commit e6b2e65

Please sign in to comment.