From 05e3653aa46c29abcde3b944f60c4d0350dff81e Mon Sep 17 00:00:00 2001 From: octoseth <71984208+octoseth@users.noreply.github.com> Date: Sat, 9 Dec 2023 11:26:47 +0100 Subject: [PATCH 1/2] adding support for symfony 7 --- .github/workflows/tests.yml | 22 ++++++++++++++++++---- composer.json | 6 +++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 354212a..a8c0627 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,11 +11,17 @@ jobs: strategy: matrix: - php: ['7.4', '8.0', '8.1', '8.2'] - symfony: ['4', '5', '6'] + php: ["7.4", "8.0", "8.1", "8.2"] + symfony: ["4", "5", "6", "7"] exclude: - - php: '7.4' - symfony: '6' + - php: "7.4" + symfony: "6" + - php: "7.4" + symfony: "7" + - php: "8.0" + symfony: "7" + - php: "8.1" + symfony: "7" steps: - name: Checkout Code @@ -57,6 +63,14 @@ jobs: command: composer require "symfony/filesystem:^6.0" "symfony/process:^6.0" "symfony/var-dumper:^6.0" --dev --no-update --no-interaction if: "matrix.symfony == '6'" + - name: Select Symfony 7 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "symfony/filesystem:^7.0" "symfony/process:^7.0" "symfony/var-dumper:^7.0" --dev --no-update --no-interaction + if: "matrix.symfony == '7'" + - name: Install Dependencies uses: nick-invision/retry@v1 with: diff --git a/composer.json b/composer.json index cd6fe65..64a1490 100644 --- a/composer.json +++ b/composer.json @@ -21,14 +21,14 @@ "evenement/evenement": "^3.0.1", "monolog/monolog": "^1.27.1 || ^2.8 || ^3.2", "psr/log": "^1.1 || ^2.0 || ^3.0", - "symfony/filesystem": "^4.4 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.4 || ^5.0 || ^6.0 || ^7.0", "symfony/polyfill-mbstring": "^1.26", - "symfony/process": "^4.4 || ^5.0 || ^6.0" + "symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0" }, "require-dev":{ "bamarni/composer-bin-plugin": "^1.8.2", "phpunit/phpunit": "^9.6.3 || ^10.0.12", - "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0" + "symfony/var-dumper": "^4.4 || ^5.0 || ^6.0 || ^7.0" }, "autoload":{ "psr-4" : { From e595a86235b62ba11aa1982b1a7184760e4ce303 Mon Sep 17 00:00:00 2001 From: octoseth <71984208+octoseth@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:32:35 +0100 Subject: [PATCH 2/2] fix double-quotes to simple-quotes --- .github/workflows/tests.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a8c0627..2b4357f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,17 +11,17 @@ jobs: strategy: matrix: - php: ["7.4", "8.0", "8.1", "8.2"] - symfony: ["4", "5", "6", "7"] + php: ['7.4', '8.0', '8.1', '8.2'] + symfony: ['4', '5', '6', '7'] exclude: - - php: "7.4" - symfony: "6" - - php: "7.4" - symfony: "7" - - php: "8.0" - symfony: "7" - - php: "8.1" - symfony: "7" + - php: '7.4' + symfony: '6' + - php: '7.4' + symfony: '7' + - php: '8.0' + symfony: '7' + - php: '8.1' + symfony: '7' steps: - name: Checkout Code