-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add Laravel 10 Support * fix: remove phpunit.cache results folder * chore: restore Laravel 9 support * chore: Lint chore: Normalize composer.json * fix: docblock fix: run-tests workflow * fix: Styling * minor improvements * chore: exclude specific matrix configuration * fix: exclusions * fix: run-tests split into two jobs * fix: versions * fix: reintroduce PHP 8.1 to strategy matrices
- Loading branch information
1 parent
6e1067b
commit 8ccf234
Showing
7 changed files
with
111 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ testbench.yaml | |
vendor | ||
node_modules | ||
.php-cs-fixer.cache | ||
.phpunit.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
{ | ||
"name": "antoninmasek/laravel-hashids", | ||
"description": "Simple Laravel wrapper around Hashids library.", | ||
"license": "MIT", | ||
"keywords": [ | ||
"antoninmasek", | ||
"laravel", | ||
"laravel-hashids" | ||
], | ||
"homepage": "https://github.com/antoninmasek/laravel-hashids", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Antonín Mašek", | ||
"email": "[email protected]", | ||
"role": "Developer" | ||
} | ||
], | ||
"homepage": "https://github.com/antoninmasek/laravel-hashids", | ||
"require": { | ||
"php": "^8.0|^8.1", | ||
"hashids/hashids": "^4.1", | ||
"illuminate/contracts": "^9.0", | ||
"spatie/laravel-package-tools": "^1.9.2" | ||
"php": "^8.1 || ^8.2", | ||
"hashids/hashids": "^5.0", | ||
"illuminate/contracts": "^9.0 || ^10.0", | ||
"spatie/laravel-package-tools": "^1.14.1" | ||
}, | ||
"require-dev": { | ||
"laravel/pint": "^1.0", | ||
"nunomaduro/collision": "^6.0", | ||
"nunomaduro/larastan": "^2.0.1", | ||
"orchestra/testbench": "^7.0", | ||
"phpstan/extension-installer": "^1.1", | ||
"phpstan/phpstan-deprecation-rules": "^1.0", | ||
"phpstan/phpstan-phpunit": "^1.0", | ||
"phpunit/phpunit": "^9.5", | ||
"spatie/laravel-ray": "^1.26" | ||
"ergebnis/composer-normalize": "^2.29", | ||
"laravel/pint": "^1.5", | ||
"nunomaduro/collision": "^6.0 || ^7.0.2", | ||
"nunomaduro/larastan": "^2.4.0", | ||
"orchestra/testbench": "^7.0 || ^8.0", | ||
"phpstan/extension-installer": "^1.2", | ||
"phpstan/phpstan-deprecation-rules": "^1.1.1", | ||
"phpstan/phpstan-phpunit": "^1.3.4", | ||
"phpunit/phpunit": "^9.5 || ^10.0", | ||
"spatie/laravel-ray": "^1.32.2" | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"AntoninMasek\\Hashids\\": "src" | ||
|
@@ -42,27 +45,26 @@ | |
"AntoninMasek\\Hashids\\Tests\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"analyse": "vendor/bin/phpstan analyse", | ||
"test": "vendor/bin/phpunit", | ||
"test-coverage": "vendor/bin/phpunit --coverage" | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"phpstan/extension-installer": true | ||
} | ||
"phpstan/extension-installer": true, | ||
"ergebnis/composer-normalize": true | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"AntoninMasek\\Hashids\\HashidsServiceProvider" | ||
], | ||
"aliases": { | ||
"Hashids": "AntoninMasek\\Hashids\\Facades\\Hashids" | ||
} | ||
}, | ||
"providers": [ | ||
"AntoninMasek\\Hashids\\HashidsServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
"scripts": { | ||
"analyse": "vendor/bin/phpstan analyse", | ||
"test": "vendor/bin/phpunit --no-coverage", | ||
"test-coverage": "vendor/bin/phpunit --coverage" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
executionOrder="random" | ||
failOnWarning="true" | ||
failOnRisky="true" | ||
failOnEmptyTestSuite="true" | ||
beStrictAboutOutputDuringTests="true" | ||
verbose="true" | ||
cacheDirectory=".phpunit.cache" | ||
backupStaticProperties="false" | ||
> | ||
<testsuites> | ||
<testsuite name="AntoninMasek Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<server name="DB_CONNECTION" value="sqlite"/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
</php> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<html outputDirectory="build/coverage"/> | ||
<text outputFile="build/coverage.txt"/> | ||
<clover outputFile="build/logs/clover.xml"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="build/report.junit.xml"/> | ||
</logging> | ||
<testsuites> | ||
<testsuite name="AntoninMasek Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<server name="DB_CONNECTION" value="sqlite"/> | ||
<server name="DB_DATABASE" value=":memory:"/> | ||
</php> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<html outputDirectory="build/coverage"/> | ||
<text outputFile="build/coverage.txt"/> | ||
<clover outputFile="build/logs/clover.xml"/> | ||
</report> | ||
</coverage> | ||
<logging> | ||
<junit outputFile="build/report.junit.xml"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters