Skip to content

Commit

Permalink
Merge pull request #78 from sylvaindeloux/patch-1
Browse files Browse the repository at this point in the history
Add Symfony 6 support
  • Loading branch information
SamRemis authored Mar 29, 2022
2 parents 4c6e2ab + c470439 commit 0e3df17
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 36 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PHP Composer

#whenever master has a PR or is pushed to
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
run:
runs-on: ubuntu-18.04
strategy:
#for each of the following versions of PHP, with and without --prefer-lowest
matrix:
php-versions: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4']

#set the name for each job
name: PHP ${{ matrix.php-versions }}
steps:
#sets up the correct version of PHP with necessary config options
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: memory_limit=4G, phar.readonly=false

#checkout the codebase from github
- name: Checkout codebase
uses: actions/checkout@v3

#run composer
- name: Composer install
run: composer install

#run tests
- name: Run test suite
run: vendor/bin/phpunit
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"require": {
"php": ">=5.5",
"aws/aws-sdk-php": "^3.2.6",
"symfony/config": "~2.3|~3.0|~4.0|~5.0",
"symfony/dependency-injection": "~2.3|~3.0|~4.0|~5.0",
"symfony/http-kernel": "~2.3|~3.0|~4.0|~5.0"
"symfony/config": "~2.3|~3.0|~4.0|~5.0|~6.0",
"symfony/dependency-injection": "~2.3|~3.0|~4.0|~5.0|~6.0",
"symfony/http-kernel": "~2.3|~3.0|~4.0|~5.0|~6.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35|^5.4.0|^6.0.0",
"symfony/framework-bundle": "~2.3|~3.0|~4.0|~5.0",
"symfony/yaml": "~2.3|~3.0|~4.0|~5.0"
"symfony/framework-bundle": "~2.3|~3.0|~4.0|~5.0|~6.0",
"symfony/yaml": "~2.3|~3.0|~4.0|~5.0|~6.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0e3df17

Please sign in to comment.