diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 94b8d39..e2d9761 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -20,7 +20,7 @@ jobs: - name: 🔥 Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.2 + php-version: 8.3 coverage: none tools: cs2pr, pint diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index cf71d63..712fe91 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,7 +16,7 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest ] - php: [ 8.2 ] + php: [ 8.2, 8.3 ] laravel: [ "^10.0", "^11.0" ] stability: [ prefer-lowest, prefer-stable ] include: diff --git a/composer.json b/composer.json index 6e53c9a..d71e5b3 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,8 @@ { - "name" : "simplesquid/nova-enum-field", - "description" : "A Laravel Nova field to add enums to resources.", - "keywords" : [ + "name": "simplesquid/nova-enum-field", + "description": "A Laravel Nova field to add enums to resources.", + "license": "MIT", + "keywords": [ "simplesquid", "laravel", "nova", @@ -9,57 +10,60 @@ "enum", "nova-enum-field" ], - "homepage" : "https://github.com/simplesquid/nova-enum-field", - "license" : "MIT", - "authors" : [ + "authors": [ { - "name" : "Matthew Poulter", - "email" : "matthew.poulter@simplesquid.co.za", - "homepage" : "https://simplesquid.co.za/", - "role" : "Developer" + "name": "Matthew Poulter", + "email": "matthew.poulter@simplesquid.co.za", + "homepage": "https://simplesquid.co.za/", + "role": "Developer" } ], - "repositories" : [ - { - "type" : "composer", - "url" : "https://nova.laravel.com" - } - ], - "require" : { - "php" : "^8.1", - "bensampo/laravel-enum" : "^5.0 || ^6.0", - "illuminate/support" : "^10.0 || ^11.0", - "laravel/nova" : "^4.0" + "homepage": "https://github.com/simplesquid/nova-enum-field", + "require": { + "php": "^8.1", + "bensampo/laravel-enum": "^5.0 || ^6.0", + "illuminate/support": "^10.0 || ^11.0", + "laravel/nova": "^4.0" }, - "require-dev" : { - "joshgaber/novaunit" : "^3.1", - "laravel/pint" : "^1.2", - "mockery/mockery" : "^1.3.3", - "nunomaduro/collision" : "^7.0 || ^8.0", - "orchestra/testbench" : "^8.0 || ^9.0", - "phpunit/phpunit" : "^10.0", - "symfony/var-dumper" : "^6.0 || ^7.0" + "require-dev": { + "ergebnis/composer-normalize": "^2.44", + "laravel/pint": "^1.2", + "mockery/mockery": "^1.3.3", + "nunomaduro/collision": "^7.0 || ^8.0", + "orchestra/testbench": "^8.0 || ^9.0", + "phpunit/phpunit": "^10.0", + "quotevelocity/novaunit": "^4.0", + "symfony/var-dumper": "^6.0 || ^7.0" }, - "autoload" : { - "psr-4" : { - "SimpleSquid\\Nova\\Fields\\Enum\\" : "src" + "repositories": [ + { + "type": "composer", + "url": "https://nova.laravel.com" } - }, - "autoload-dev" : { - "psr-4" : { - "SimpleSquid\\Nova\\Fields\\Enum\\Tests\\" : "tests" + ], + "minimum-stability": "stable", + "autoload": { + "psr-4": { + "SimpleSquid\\Nova\\Fields\\Enum\\": "src" } }, - "extra" : { - "laravel" : { - "providers" : [] + "autoload-dev": { + "psr-4": { + "SimpleSquid\\Nova\\Fields\\Enum\\Tests\\": "tests" } }, - "scripts" : { - "test" : "vendor/bin/phpunit --colors=always" + "config": { + "allow-plugins": { + "ergebnis/composer-normalize": true + }, + "sort-packages": true }, - "config" : { - "sort-packages" : true + "extra": { + "laravel": { + "providers": [] + } }, - "minimum-stability" : "stable" + "scripts": { + "test": "vendor/bin/phpunit --colors=always" + } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 535597c..31a496c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,9 @@ - + tests/Fields @@ -7,6 +11,11 @@ + + + src + + @@ -14,9 +23,4 @@ - - - src - -