Skip to content

Commit

Permalink
Merge pull request #27 from Chris53897/feature/symfony6
Browse files Browse the repository at this point in the history
Add support for Symfony 6
  • Loading branch information
maxbaldanza authored Jan 3, 2023
2 parents 4ce7732 + 189c3b3 commit 069e0ae
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,30 @@ on: [push]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.3', '7.4', '8.1']
symfony-versions: ['3.4.*', '4.4.*', '5.4.*']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with Symfony ${{ matrix.symfony-versions }}
include:
- php-versions: 7.3
symfony-versions: 3.4.*
- php-versions: 7.4
symfony-versions: 4.4.*
- php-versions: 7.4
symfony-versions: 5.4.*
- php-versions: 8.0
symfony-versions: 5.4.*
- php-versions: 8.0
symfony-versions: 6.0.*
- php-versions: 8.1
symfony-versions: 6.2.*
- php-versions: 8.2
symfony-versions: 6.2.*

name: PHP ${{ matrix.php-versions }} Test with Symfony ${{ matrix.symfony-versions }}
steps:
# —— Setup Github actions 🐙 —————————————————————————————————————————————
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

# https://github.com/shivammathur/setup-php (community)
- name: Setup PHP, with composer and extensions
Expand All @@ -35,10 +48,10 @@ jobs:
# —— Composer 🧙‍️ —————————————————————————————————————————————————————————
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
composer.lock
composer.phar
.phpunit.result.cache
bin/
vendor/
.phpunit.result.cache
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Easily configure cron through PHP.

If you use Symfony 3/4/5, you could use our [cool bundle](https://github.com/mybuilder/cronos-bundle) in order to configure your app jobs through fancy annotations!
If you use Symfony 3/4/5/6, you could use our [cool bundle](https://github.com/mybuilder/cronos-bundle) in order to configure your app jobs through fancy annotations!

## Setup and Configuration

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
],
"require": {
"php": ">=7.3",
"symfony/process": "~3.0|^4.0|^5.0"
"symfony/process": "^3.4|^4.4|^5.4|^6.0"
},
"suggest": {
"symfony/filesystem": "Allows using Symfony Filesystem"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^9.0"
"symfony/filesystem": "^3.4|^4.4|^5.4|^6.0",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": { "MyBuilder\\Cronos\\": "src" }
Expand Down

0 comments on commit 069e0ae

Please sign in to comment.