From 3cb9a6dc99445d60134312dcbf4f836f6c8f7870 Mon Sep 17 00:00:00 2001 From: takielias Date: Wed, 20 Mar 2024 23:26:16 +0600 Subject: [PATCH 1/2] Updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e4371b6..a54b9b0 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Get it [here](https://laravel-news.com/tablar-laravel-dashboard-preset) ### Installation ```shell -composer require takielias/tablar +composer require takielias/tablar:"^11" ``` ### Demo From d7ffe65a847fb6e29fc4d118649ed9075072b9f5 Mon Sep 17 00:00:00 2001 From: takielias Date: Sun, 15 Sep 2024 22:33:59 +0600 Subject: [PATCH 2/2] Update tests. --- .github/workflows/tests.yml | 33 +++++++++++++++++++++++++++++++++ composer.json | 10 +++------- phpunit.xml | 17 +++++++++++++++++ 3 files changed, 53 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/tests.yml create mode 100644 phpunit.xml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..efbcbe6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,33 @@ +name: Tablar Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Install Dependencies + run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + + - name: Create Database + run: | + mkdir -p database + touch database/database.sqlite + + - name: Execute tests via PHPUnit + env: + DB_CONNECTION: sqlite + DB_DATABASE: database/database.sqlite + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 6b08dea..b2f4c1f 100644 --- a/composer.json +++ b/composer.json @@ -21,9 +21,8 @@ "laravel/ui": "~4" }, "require-dev": { - "phpunit/phpunit": ">=9.1", - "orchestra/testbench": ">=9.0", - "scrutinizer/ocular": "^1.9" + "phpunit/phpunit": ">=10.0", + "orchestra/testbench": ">=9.0" }, "autoload": { "psr-4": { @@ -33,10 +32,7 @@ "autoload-dev": { "psr-4": { "TakiElias\\Tablar\\Tests\\": "tests/" - }, - "classmap": [ - "tests/TestCase.php" - ] + } }, "extra": { "branch-alias": { diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..53cd509 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,17 @@ + + + + + ./tests/Menu + tests/TestCase.php + + + + + src/ + + +