From a019c5329d38a3b5ab282cbfda93d921c3553b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Thu, 21 Mar 2024 12:00:45 +0100 Subject: [PATCH 01/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 36 +++++++++++++++++------------------- composer.json | 4 ++-- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2ec38ad..7b27c83 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,32 +7,30 @@ on: branches: [master] jobs: - phpunit: - + tests: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['8.3', '8.2', '8.1', '8.0'] + php: [8.0, 8.1, 8.2, 8.3] steps: - - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-versions }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif - coverage: xdebug + - uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif + coverage: xdebug - - name: Validate composer.json and composer.lock - run: composer validate + - name: Validate composer.json and composer.lock + run: composer validate - - name: Install dependencies - run: | - composer install - composer dump + - name: Install dependencies + run: | + composer install + composer dump - - name: Run test phpunit - run: vendor/bin/phpunit \ No newline at end of file + - name: Run test phpunit + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index bb1fc17..ee9f376 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "guzzlehttp/guzzle": "^7.4", "league/omnipay": "^3.2", "omnipay/common": "^3.2", - "illuminate/contracts": "^9.25|^10.0" + "illuminate/contracts": "^9.25|^10.0|^11.0" }, "require-dev": { "guzzlehttp/psr7": "^1", @@ -44,4 +44,4 @@ ] } } -} +} \ No newline at end of file From 1e56205ffcef4198e45c72aed904ee36c762c7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Thu, 21 Mar 2024 12:19:44 +0100 Subject: [PATCH 02/20] Add Support to Laravel 11 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ee9f376..4225947 100644 --- a/composer.json +++ b/composer.json @@ -31,8 +31,8 @@ "require-dev": { "guzzlehttp/psr7": "^1", "omnipay/tests": "^4.1", - "phpunit/phpunit": "^9.5", - "orchestra/testbench": "^7.0|^8.0", + "phpunit/phpunit": "^9.5|^10.0|^10.5", + "orchestra/testbench": "^7.0|^8.0|^9.0", "friendsofphp/php-cs-fixer": "^3.10", "phpstan/phpstan": "^1.8", "nunomaduro/larastan": "^2.1" From 6078411e2883919e5427259b298759b64f478847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Thu, 21 Mar 2024 14:31:51 +0100 Subject: [PATCH 03/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7b27c83..4da1765 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,17 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php-${{ matrix.php }} + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump From 04c42a4fdfcd00ca713dcaf56f9bef0e5f589c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Thu, 21 Mar 2024 14:52:14 +0100 Subject: [PATCH 04/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4da1765..f4a827c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ on: branches: [master] jobs: - tests: + test: runs-on: ubuntu-latest strategy: From 2e2904f752884a80145c81014a87bb0984668ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Thu, 21 Mar 2024 15:22:13 +0100 Subject: [PATCH 05/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f4a827c..1ca1c86 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,8 +33,7 @@ jobs: with: path: vendor key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php-${{ matrix.php }} + restore-keys: ${{ runner.os }}-php-${{ matrix.php }} - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' From b9544d84e252f7fe4a3a6d4170a83a4d2c33133b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Tue, 26 Mar 2024 15:17:48 +0100 Subject: [PATCH 06/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ca1c86..ad25929 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php: [8.0, 8.1, 8.2, 8.3] + php: [8.1, 8.2, 8.3] steps: - uses: actions/checkout@v4 @@ -22,7 +22,6 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif - coverage: xdebug - name: Validate composer.json and composer.lock run: composer validate @@ -42,4 +41,4 @@ jobs: composer dump - name: Run test phpunit - run: vendor/bin/phpunit + run: vendor/bin/phpunit --stop-on-error --stop-on-failure From a5aa1a922281e50631d486e5d364cb99705cc205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Tue, 26 Mar 2024 15:19:34 +0100 Subject: [PATCH 07/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ad25929..629d72f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif - - name: Validate composer.json and composer.lock + - name: Validate composer.json run: composer validate - name: Cache Composer packages From 4fdf6ee4022519a4bee85aace4865a6a2319fe19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 15:08:03 +0200 Subject: [PATCH 08/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 25 +++++++++++-------------- .github/workflows/style-fix.yml | 28 ++++++++++------------------ .github/workflows/tests.yml | 6 ++++-- 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index 4960b0a..7f791ed 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -1,4 +1,4 @@ -name: analyse +name: analyze on: push: @@ -12,30 +12,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.3 - - name: Get Composer Cache Directory + - name: Cache Composer packages id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v3 + uses: actions/cache@v3 with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer-8.1 + path: vendor + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: ${{ runner.os }}-composer- - name: Install dependencies - if: steps.cache-descom-laravel-auth.outputs.cache-hit != 'true' + if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump - name: Run analyse phpstan - run: vendor/bin/phpstan analyse --error-format github \ No newline at end of file + run: vendor/bin/phpstan analyse --error-format github diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index fe82531..4007315 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -5,32 +5,24 @@ on: branches: [master] jobs: - style: + style-fix: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v4 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.1 - - - name: Get Composer Cache Directory + - name: Cache Composer packages id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - - uses: actions/cache@v3 + uses: actions/cache@v3 with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer-8.1 + path: vendor + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: ${{ runner.os }}-composer- - name: Install dependencies - if: steps.cache-descom-laravel-auth.outputs.cache-hit != 'true' + if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump @@ -41,4 +33,4 @@ jobs: - uses: EndBug/add-and-commit@v9 - name: Run style - run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit \ No newline at end of file + run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 629d72f..59078e1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,8 @@ on: branches: [master] jobs: - test: + phpunit: + runs-on: ubuntu-latest strategy: @@ -15,7 +16,8 @@ jobs: php: [8.1, 8.2, 8.3] steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 From 53a0d3f4ebf397669c68b6ec0cdeeca2a28c5b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 15:49:32 +0200 Subject: [PATCH 09/20] Add Support to Laravel 11 --- .github/workflows/style-fix.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index 4007315..b9c77fa 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -1,12 +1,13 @@ -name: style-fix +name: Style fix on: push: branches: [master] - + pull_request: + branches: [master] + jobs: - style-fix: - + style: runs-on: ubuntu-latest steps: From 2e7cd281f258f601a613b61b52fa0260ab283696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 15:50:45 +0200 Subject: [PATCH 10/20] Add Support to Laravel 11 --- .github/workflows/style-fix.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index b9c77fa..acf3356 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -5,7 +5,7 @@ on: branches: [master] pull_request: branches: [master] - + jobs: style: runs-on: ubuntu-latest @@ -14,6 +14,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + - name: Cache Composer packages id: composer-cache uses: actions/cache@v3 From 90d4f855775db198ab741cd4be495d12ed7b5ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 15:53:12 +0200 Subject: [PATCH 11/20] Add Support to Laravel 11 --- tests/PurchaseTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/PurchaseTest.php b/tests/PurchaseTest.php index e72c4d7..f7c25b9 100644 --- a/tests/PurchaseTest.php +++ b/tests/PurchaseTest.php @@ -20,6 +20,9 @@ public function setUp(): void public function testPurchaseRequest() { + if (!true) { + // (1) Replace the following line: + } $request = $this->gateway->purchase([ 'amount' => '12.00', 'description' => 'Test purchase', @@ -49,10 +52,10 @@ public function testPurchaseRedirect() $responseHtml = $this->gateway ->purchase( [ - 'amount' => '12.00', - 'description' => 'Test purchase', - 'transactionId' => 1, - ] + 'amount' => '12.00', + 'description' => 'Test purchase', + 'transactionId' => 1, + ] )->send() ->getRedirectResponse() ->getContent(); From cec9124ab1b4f721ea07c497035692d9db04a3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 15:54:55 +0200 Subject: [PATCH 12/20] Add Support to Laravel 11 --- .github/workflows/style-fix.yml | 2 -- tests/PurchaseTest.php | 3 --- 2 files changed, 5 deletions(-) diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index acf3356..54d90a2 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -3,8 +3,6 @@ name: Style fix on: push: branches: [master] - pull_request: - branches: [master] jobs: style: diff --git a/tests/PurchaseTest.php b/tests/PurchaseTest.php index f7c25b9..5ee5304 100644 --- a/tests/PurchaseTest.php +++ b/tests/PurchaseTest.php @@ -20,9 +20,6 @@ public function setUp(): void public function testPurchaseRequest() { - if (!true) { - // (1) Replace the following line: - } $request = $this->gateway->purchase([ 'amount' => '12.00', 'description' => 'Test purchase', From dd99a3a7d91b029e0e680514bc7e025d2f84eb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 16:22:29 +0200 Subject: [PATCH 13/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 4 ++-- .github/workflows/style-fix.yml | 3 ++- .github/workflows/tests.yml | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index 7f791ed..5826757 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -1,4 +1,4 @@ -name: analyze +name: PHPStan on: push: @@ -8,7 +8,6 @@ on: jobs: phpstan: - runs-on: ubuntu-latest steps: @@ -19,6 +18,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: 8.3 + coverage: none - name: Cache Composer packages id: composer-cache diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index 54d90a2..6b0d239 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -5,7 +5,7 @@ on: branches: [master] jobs: - style: + style-fix: runs-on: ubuntu-latest steps: @@ -16,6 +16,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: 8.3 + coverage: none - name: Cache Composer packages id: composer-cache diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59078e1..8dd7667 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: tests +name: Tests on: push: @@ -8,7 +8,6 @@ on: jobs: phpunit: - runs-on: ubuntu-latest strategy: @@ -24,6 +23,7 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif + coverage: none - name: Validate composer.json run: composer validate From d1535ff24e0ea7a5cabd61b98022e7e62b471fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Wed, 3 Apr 2024 16:23:49 +0200 Subject: [PATCH 14/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 9 --------- .github/workflows/style-fix.yml | 9 --------- .github/workflows/tests.yml | 9 --------- 3 files changed, 27 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index 5826757..c8ea22e 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -20,16 +20,7 @@ jobs: php-version: 8.3 coverage: none - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index 6b0d239..724c498 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -18,16 +18,7 @@ jobs: php-version: 8.3 coverage: none - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8dd7667..f70820a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,16 +28,7 @@ jobs: - name: Validate composer.json run: composer validate - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-php-${{ matrix.php }} - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump From 9aec7a85d89e455b61e1dda4a3abcbe91895b9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Fri, 12 Apr 2024 12:11:22 +0200 Subject: [PATCH 15/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 13 +++++++-- .github/workflows/style-fix.yml | 51 +++++++++++++++++++-------------- .github/workflows/tests.yml | 12 +++++++- 3 files changed, 52 insertions(+), 24 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index c8ea22e..a337755 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -1,4 +1,4 @@ -name: PHPStan +name: Analyse on: push: @@ -18,9 +18,18 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: 8.3 - coverage: none + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v4 + with: + path: vendor + key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }} + restore-keys: | + ${{ runner.os }}-php-8.3 - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index 724c498..c30c46e 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -9,24 +9,33 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.3 - coverage: none - - - name: Install dependencies - run: | - composer install - composer dump - - - name: Fix styles - run: vendor/bin/php-cs-fixer fix - - - uses: EndBug/add-and-commit@v9 - - - name: Run style - run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v4 + with: + path: vendor + key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }} + restore-keys: | + ${{ runner.os }}-php-8.3 + + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: | + composer install + composer dump + + - name: Fix styles + run: vendor/bin/php-cs-fixer fix + + - name: Run style + run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit + + - uses: EndBug/add-and-commit@v9 \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f70820a..976adff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: true matrix: php: [8.1, 8.2, 8.3] @@ -23,12 +24,21 @@ jobs: with: php-version: ${{ matrix.php }} extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif - coverage: none - name: Validate composer.json run: composer validate + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v4 + with: + path: vendor + key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php-${{ matrix.php }}- + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' run: | composer install composer dump From 1ef3a6a131bb45bbe4628c3f28c546b8a99dc710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Fri, 12 Apr 2024 12:19:55 +0200 Subject: [PATCH 16/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index a337755..536162c 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -26,7 +26,7 @@ jobs: path: vendor key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-php-8.3 + ${{ runner.os }}-php-8.3- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 976adff..e37f931 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,4 +44,4 @@ jobs: composer dump - name: Run test phpunit - run: vendor/bin/phpunit --stop-on-error --stop-on-failure + run: composer test From b6c8887000c873be401d856b616212052905dc0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Fri, 12 Apr 2024 12:21:37 +0200 Subject: [PATCH 17/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e37f931..976adff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,4 +44,4 @@ jobs: composer dump - name: Run test phpunit - run: composer test + run: vendor/bin/phpunit --stop-on-error --stop-on-failure From e541bfd2db3af4568d86d1ad6ae7c6bbd349a28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Mon, 15 Apr 2024 16:35:26 +0200 Subject: [PATCH 18/20] Add Support to Laravel 11 --- .github/workflows/analyse.yml | 2 +- .github/workflows/style-fix.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index 536162c..70354f8 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -31,7 +31,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: | - composer install + composer install --no-interaction --no-progress composer dump - name: Run analyse phpstan diff --git a/.github/workflows/style-fix.yml b/.github/workflows/style-fix.yml index c30c46e..7503457 100644 --- a/.github/workflows/style-fix.yml +++ b/.github/workflows/style-fix.yml @@ -24,12 +24,12 @@ jobs: path: vendor key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-php-8.3 + ${{ runner.os }}-php-8.3- - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: | - composer install + composer install --no-interaction --no-progress composer dump - name: Fix styles @@ -38,4 +38,4 @@ jobs: - name: Run style run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit - - uses: EndBug/add-and-commit@v9 \ No newline at end of file + - uses: EndBug/add-and-commit@v9 From 5a5890e9f92968e2c8abe9c3c52047a99f04caa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Mon, 15 Apr 2024 16:48:39 +0200 Subject: [PATCH 19/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 976adff..0939bed 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,6 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif - name: Validate composer.json run: composer validate From b295eac880b4928506daf51e845a6079a025d55a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Llorens?= Date: Mon, 15 Apr 2024 16:52:59 +0200 Subject: [PATCH 20/20] Add Support to Laravel 11 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0939bed..cfbe0b5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: | - composer install + composer install --no-interaction --no-progress composer dump - name: Run test phpunit