diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56b7b83..68c4992 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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. diff --git a/.gitignore b/.gitignore index 6249f56..6c8d0ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ composer.lock composer.phar +.phpunit.result.cache bin/ vendor/ -.phpunit.result.cache diff --git a/README.md b/README.md index 6727b44..5f26cd4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/composer.json b/composer.json index 6ad8e69..08b9b9f 100644 --- a/composer.json +++ b/composer.json @@ -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" }