diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 265256d..7513ebe 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,23 +2,31 @@ name: run-tests on: push: - branches: [main] - pull_request: - branches: [main] + paths: + - '**.php' + - '.github/workflows/run-tests.yml' + - 'phpunit.xml.dist' + - 'composer.json' + - 'composer.lock' jobs: test: runs-on: ${{ matrix.os }} + timeout-minutes: 5 strategy: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.2, 8.1] - laravel: [10.*] - stability: [prefer-lowest, prefer-stable] + php: [8.3, 8.2] + laravel: [11.*, 10.*] + stability: [prefer-stable] include: + - laravel: 11.* + testbench: 9.* + carbon: ^2.63 - laravel: 10.* testbench: 8.* + carbon: ^2.63 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -40,13 +48,11 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: List Installed Dependencies run: composer show -D - name: Execute tests - run: | - vendor/bin/phpunit --version - vendor/bin/pest --ci + run: vendor/bin/pest --ci diff --git a/CHANGELOG.md b/CHANGELOG.md index cc8d257..18cb63a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Changelog -## v0.1.0 - 2023-10-09 +## [0.2.0] - 2024-11-06 -Initial version +Add support to Laravel 11 ## [0.1.0] - 2023-10-09 -Initial pre-release. +Initial version diff --git a/composer.json b/composer.json index f22a369..5b07d18 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "name": "routegroup/laravel-imoje", "description": "Package for imoje payments", + "version": "0.2.0", "keywords": [ "routegroup", "laravel", @@ -16,20 +17,19 @@ } ], "require": { - "php": "^8.1", + "php": "^8.2", "guzzlehttp/guzzle": "^7.8", - "illuminate/support": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "justinrainbow/json-schema": "^5.2" }, "require-dev": { - "laravel/pint": "^1.0", - "nunomaduro/collision": "^7.8", - "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.8", - "pestphp/pest": "^2.0", - "pestphp/pest-plugin-arch": "^2.0", - "pestphp/pest-plugin-laravel": "^2.0", - "phpunit/phpunit": "^10.3" + "laravel/pint": "^v1.18.1", + "nunomaduro/collision": "^v8.5.0||^v7.11.0", + "larastan/larastan": "^v2.9.10", + "orchestra/testbench": "^v9.5.2|^v8.27.2", + "pestphp/pest": "^2.36.0", + "pestphp/pest-plugin-arch": "^v2.7.0", + "pestphp/pest-plugin-laravel": "^v2.4.0" }, "autoload": { "psr-4": { @@ -41,9 +41,9 @@ "Routegroup\\Imoje\\Payment\\Tests\\": "tests/" } }, - "scripts": { + "scripts": { "post-autoload-dump": "@composer run prepare", - "clear": "@php vendor/bin/testbench package:purge-imoje --ansi", + "clear": "@php vendor/bin/testbench package:purge-skeleton --ansi", "prepare": "@php vendor/bin/testbench package:discover --ansi", "build": [ "@composer run prepare", @@ -54,6 +54,7 @@ "@composer run build", "@php vendor/bin/testbench serve" ], + "analyse": "vendor/bin/phpstan analyse", "test": "vendor/bin/pest", "test-coverage": "vendor/bin/pest --coverage", "format": "vendor/bin/pint"