diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae778fb..ad27986 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,10 +10,8 @@ jobs: strategy: matrix: php: + - 8.2 - 8.1 - - 8.0 - - 7.4 - - 7.3 steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7d44f0f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: php - -php: - - 8.0 - - 8.1 - -env: - global: - - DEFAULT=1 - -matrix: - fast_finish: true - - allow_failures: - - php: 8.0 - env: COVERALLS=1 DEFAULT=0 - - include: - - php: 8.0 - env: PHPCS=1 DEFAULT=0 - - php: 8.0 - env: COVERALLS=1 DEFAULT=0 - -install: - - composer self-update - - composer install --prefer-dist --no-interaction - -before_script: - - sh -c "if [ '$COVERALLS' = '1' ]; then composer require --dev php-coveralls/php-coveralls; fi" - - sh -c "if [ '$COVERALLS' = '1' ]; then mkdir -p build/logs; fi" - - phpenv rehash - - set +H - -script: - - sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit; fi" - - sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=PSR2 ./src; fi" - - sh -c "if [ '$COVERALLS' = '1' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi" - - sh -c "if [ '$COVERALLS' = '1' ]; then php vendor/bin/php-coveralls -c .coveralls.yml -v; fi" - -notifications: - email: false diff --git a/README.md b/README.md index 9bc57c5..c94f2b2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > > |Unit Tests|Coverage|Stable Version|Downloads|Laravel|License| > |:-------:|:------:|:-------:|:------:|:-------:|:-------:| -> |[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/XetaIO/Xetaravel-Mentions/tests.yml?style=flat-square)](https://github.com/XetaIO/Xetaravel-Mentions/actions/workflows/tests.yml)|[![Coverage Status](https://img.shields.io/codecov/c/github/XetaIO/Xetaravel-Mentions?style=flat-square)](https://app.codecov.io/gh/XetaIO/Xetaravel-Mentions)|[![Latest Stable Version](https://img.shields.io/packagist/v/XetaIO/Xetaravel-Mentions.svg?style=flat-square)](https://packagist.org/packages/xetaio/xetaravel-mentions)|[![Total Downloads](https://img.shields.io/packagist/dt/xetaio/xetaravel-mentions.svg?style=flat-square)](https://packagist.org/packages/xetaio/xetaravel-mentions)|[![Laravel 8.0](https://img.shields.io/badge/Laravel->=8.0-f4645f.svg?style=flat-square)](http://laravel.com)|[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/XetaIO/Xetaravel-Mentions/blob/master/LICENSE)| +> |[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/XetaIO/Xetaravel-Mentions/tests.yml?style=flat-square)](https://github.com/XetaIO/Xetaravel-Mentions/actions/workflows/tests.yml)|[![Coverage Status](https://img.shields.io/codecov/c/github/XetaIO/Xetaravel-Mentions?style=flat-square)](https://app.codecov.io/gh/XetaIO/Xetaravel-Mentions)|[![Latest Stable Version](https://img.shields.io/packagist/v/XetaIO/Xetaravel-Mentions.svg?style=flat-square)](https://packagist.org/packages/xetaio/xetaravel-mentions)|[![Total Downloads](https://img.shields.io/packagist/dt/xetaio/xetaravel-mentions.svg?style=flat-square)](https://packagist.org/packages/xetaio/xetaravel-mentions)|[![Laravel 10.0](https://img.shields.io/badge/Laravel->=10.0-f4645f.svg?style=flat-square)](http://laravel.com)|[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/XetaIO/Xetaravel-Mentions/blob/master/LICENSE)| > > A package to parse `@mentions` from a text and mention the user with a notification. > diff --git a/composer.json b/composer.json index 7fac588..edac1cb 100644 --- a/composer.json +++ b/composer.json @@ -23,13 +23,13 @@ } ], "require": { - "php": ">=7.3", - "illuminate/support": "^8.0 || ^9.0", - "illuminate/database": "^8.0 || ^9.0", + "php": ">=8.1", + "illuminate/support": "^10.0", + "illuminate/database": "^10.0", "xety/configurator": "^1.0" }, "require-dev": { - "orchestra/testbench": "^6.0 || ^7.0", + "orchestra/testbench": "^8.0", "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.2" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8ba2e81..c704134 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,27 +1,29 @@ - - - - - - - - ./tests/ - - - - - ./src - - + + + + ./src + + + + + + + + + ./tests/ + + diff --git a/tests/Parser/MentionParserTest.php b/tests/Parser/MentionParserTest.php index 4fa5e6f..2416c62 100644 --- a/tests/Parser/MentionParserTest.php +++ b/tests/Parser/MentionParserTest.php @@ -1,5 +1,5 @@ set('database.default', 'testing'); $app['config']->set('database.connections.testing', [ 'driver' => 'sqlite', - 'database' => __DIR__.'/vendor/temp/database.sqlite', + 'database' => __DIR__ . '/vendor/temp/database.sqlite', 'prefix' => '', ]); } protected function setupDatabase() { - $databasePath = __DIR__.'/vendor/temp/database.sqlite'; + $databasePath = __DIR__ . '/vendor/temp/database.sqlite'; file_put_contents($databasePath, ''); } }