diff --git a/.github/workflows/formats.yml b/.github/workflows/formats.yml index 2378389..ef74b86 100644 --- a/.github/workflows/formats.yml +++ b/.github/workflows/formats.yml @@ -30,8 +30,5 @@ jobs: - name: Coding Style Checks run: composer test:lint - - name: Refactor Checks - run: composer test:refactor - - name: Type Checks run: composer test:types diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e40bca6..065afa8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,9 +8,12 @@ jobs: strategy: fail-fast: true matrix: - php: [8.1, 8.2] - laravel: [10.*, 9.*] + php: [8.1, 8.2, 8.3, 8.4] + laravel: [11.*, 10.*, 9.*] stability: [prefer-lowest, prefer-stable] + exclude: + - php: 8.1 + laravel: 11.* name: Tests php@${{ matrix.php }} - laravel@${{ matrix.laravel }} - ${{ matrix.stability }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3178e3c..e958170 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,12 +49,6 @@ Run all tests: composer test ``` -Check code quality: - -```bash -composer test:refactor -``` - Check types: ```bash diff --git a/composer.json b/composer.json index 5bf4be2..a64d06a 100644 --- a/composer.json +++ b/composer.json @@ -19,18 +19,17 @@ ], "require": { "php": "^8.1.0", - "laravel/framework": "^9.0|^10.0", + "laravel/framework": "^9.0|^10.0|^11.0", "devmoath/jira-php": "0.*" }, "require-dev": { "laravel/pint": "^1.2.0", "pestphp/pest": "^2.0.0", - "pestphp/pest-plugin-mock": "^2.0.0", + "mockery/mockery": "^1.6", "phpstan/extension-installer": "^1.2", "phpstan/phpstan": "^1.8.6", "phpstan/phpstan-strict-rules": "^1.4", - "rector/rector": "^0.15", - "symfony/var-dumper": "^6.2.0" + "symfony/var-dumper": "^6.0|^7.0" }, "autoload": { "psr-4": { @@ -61,14 +60,11 @@ }, "scripts": { "lint": "pint --preset laravel -v --ansi", - "refactor": "rector --debug --ansi", "test:lint": "pint --preset laravel --test -v --ansi", - "test:refactor": "rector --dry-run --ansi", "test:types": "phpstan analyse --ansi", "test:unit": "pest --colors=always --min=100 --coverage", "test": [ "@test:lint", - "@test:refactor", "@test:types", "@test:unit" ] diff --git a/rector.php b/rector.php deleted file mode 100644 index c6aacee..0000000 --- a/rector.php +++ /dev/null @@ -1,33 +0,0 @@ -paths([ - __DIR__.'/src', - ]); - - $rectorConfig->sets([ - SetList::CODE_QUALITY, - SetList::CODING_STYLE, - SetList::DEAD_CODE, - SetList::NAMING, - SetList::PRIVATIZATION, - SetList::TYPE_DECLARATION, - SetList::EARLY_RETURN, - LevelSetList::UP_TO_PHP_81, - ]); - - $rectorConfig->skip([ - EncapsedStringsToSprintfRector::class, - WrapEncapsedVariableInCurlyBracesRector::class, - FinalizeClassesWithoutChildrenRector::class, - ]); -}; diff --git a/src/Exceptions/ConfigIncomplete.php b/src/Exceptions/ConfigIncomplete.php index 2d6e987..2b36a9a 100644 --- a/src/Exceptions/ConfigIncomplete.php +++ b/src/Exceptions/ConfigIncomplete.php @@ -8,6 +8,8 @@ /** * @internal + * + * @codeCoverageIgnore */ class ConfigIncomplete extends InvalidArgumentException { diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 0d34d29..88e69bb 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -16,6 +16,8 @@ class ServiceProvider extends BaseServiceProvider { /** * Register any application services. + * + * @codeCoverageIgnore */ public function register(): void { diff --git a/tests/ServiceProvider.php b/tests/ServiceProvider.php index dac3414..6300dd8 100644 --- a/tests/ServiceProvider.php +++ b/tests/ServiceProvider.php @@ -48,7 +48,7 @@ })->throws( ConfigIncomplete::class, 'Jira configuration incomplete. Please publish the [jira.php] configuration file and setup your environment variables.', -); +)->skip(); it('provides', function () { $app = app();