Skip to content

Commit

Permalink
Use quotevelocity/novaunit
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpoulter committed Oct 15, 2024
1 parent 583e238 commit d3be5ab
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
92 changes: 48 additions & 44 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,69 @@
{
"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",
"field",
"enum",
"nova-enum-field"
],
"homepage" : "https://github.com/simplesquid/nova-enum-field",
"license" : "MIT",
"authors" : [
"authors": [
{
"name" : "Matthew Poulter",
"email" : "[email protected]",
"homepage" : "https://simplesquid.co.za/",
"role" : "Developer"
"name": "Matthew Poulter",
"email": "[email protected]",
"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"
}
}
16 changes: 10 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Simple Squid Test Suite">
<directory>tests/Fields</directory>
<directory>tests/Filters</directory>
</testsuite>
</testsuites>
<coverage/>
<source>
<include>
<directory>src</directory>
</include>
</source>
<php>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_USERNAME" value="root"/>
<env name="DB_DATABASE" value="nova_enum_field"/>
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="3306"/>
</php>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>

0 comments on commit d3be5ab

Please sign in to comment.