From 2c8ebe0feb647d6c7cf9b503beac105e6271172c Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 21:42:31 +0200 Subject: [PATCH 01/14] Coverage badge experiment in github action --- .github/workflows/build_and_test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e5b5d7a0..60e8db79 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -35,7 +35,11 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.3' + extensions: pcov + ini-values: | + pcov.enabled=1 + coverage: pcov - name: Cache dependencies uses: actions/cache@v1 @@ -72,5 +76,12 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - vendor/bin/phpunit + vendor/bin/phpunit --coverage-clover clover.xml vendor/bin/pint + + - name: Generate test coverage badge + uses: timkrase/phpunit-coverage-badge@v1.2.0 + with: + coverage_badge_path: 'badge-coverage.svg' + push_badge: true + repo_token: ${{ secrets.GITHUB_TOKEN }} From 53c49f85590d8f781ddb9f8d77ce995e8f08f6ee Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 21:52:45 +0200 Subject: [PATCH 02/14] Coverage badge experiment in github action --- .github/workflows/build_and_test.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 60e8db79..e5b5d7a0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -35,11 +35,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.3' - extensions: pcov - ini-values: | - pcov.enabled=1 - coverage: pcov + php-version: '8.1' - name: Cache dependencies uses: actions/cache@v1 @@ -76,12 +72,5 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - vendor/bin/phpunit --coverage-clover clover.xml + vendor/bin/phpunit vendor/bin/pint - - - name: Generate test coverage badge - uses: timkrase/phpunit-coverage-badge@v1.2.0 - with: - coverage_badge_path: 'badge-coverage.svg' - push_badge: true - repo_token: ${{ secrets.GITHUB_TOKEN }} From 1cb4b69659ab1d7bc257906e40e68ad5896c6c05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 19:54:27 +0000 Subject: [PATCH 03/14] Bump braces from 3.0.2 to 3.0.3 Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index f7544b6e..4d180f4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "autoprefixer": "^10.4.13", "laravel-vite-plugin": "^0.7.5", "tailwindcss": "^3.2.4", - "vite": "^4.0.5" + "vite": "^4.5.3" } }, "node_modules/@esbuild/android-arm": { @@ -525,13 +525,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -762,11 +761,10 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -889,7 +887,6 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -1446,7 +1443,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, From d284cc01c94bafd1649e31c349c66030bec901ce Mon Sep 17 00:00:00 2001 From: Github Actions Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 19:55:17 +0000 Subject: [PATCH 04/14] Update code coverage badge --- badge-coverage.svg | 16 + clover.xml | 1383 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 1399 insertions(+) create mode 100644 badge-coverage.svg create mode 100644 clover.xml diff --git a/badge-coverage.svg b/badge-coverage.svg new file mode 100644 index 00000000..af9453e5 --- /dev/null +++ b/badge-coverage.svg @@ -0,0 +1,16 @@ + + + + + + + + + coverage + coverage + + + 30 % + 30 % + + \ No newline at end of file diff --git a/clover.xml b/clover.xml new file mode 100644 index 00000000..c75b7bba --- /dev/null +++ b/clover.xml @@ -0,0 +1,1383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 54a2d7458b2701ae180477ff64ad0c5b7b0f1de9 Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:00:57 +0200 Subject: [PATCH 05/14] Coverage badge experiment in github action --- .github/workflows/build_and_test.yml | 4 ++-- .gitignore | 1 - README.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 60e8db79..1e4aba2c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -76,12 +76,12 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - vendor/bin/phpunit --coverage-clover clover.xml + vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml vendor/bin/pint - name: Generate test coverage badge uses: timkrase/phpunit-coverage-badge@v1.2.0 with: - coverage_badge_path: 'badge-coverage.svg' + coverage_badge_path: 'tests/coverage/badge-coverage.svg' push_badge: true repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index b6ebc497..2603df5b 100755 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,3 @@ _ide_helper.php *.swp *.swo .phpunit.result.cache -/tests/coverage diff --git a/README.md b/README.md index 647ca1c8..d12b112a 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog) +[![Test Coverage](https://raw.githubusercontent.com/alimranahmed/LaraBlog/main/tests/coverage/badge-coverage.svg)](https://packagist.org/packages/alimranahmed/LaraBlog) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php) From 3ba411557d03c982a4e796896250f3f2d29485a4 Mon Sep 17 00:00:00 2001 From: Github Actions Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:02:10 +0000 Subject: [PATCH 06/14] Update code coverage badge --- tests/coverage/badge-coverage.svg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/coverage/badge-coverage.svg diff --git a/tests/coverage/badge-coverage.svg b/tests/coverage/badge-coverage.svg new file mode 100644 index 00000000..af9453e5 --- /dev/null +++ b/tests/coverage/badge-coverage.svg @@ -0,0 +1,16 @@ + + + + + + + + + coverage + coverage + + + 30 % + 30 % + + \ No newline at end of file From 2e1f4f06de66e57d3c7f3a78c83e3a931bc84971 Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:04:16 +0200 Subject: [PATCH 07/14] Readme file updated --- README.md | 2 +- badge-coverage.svg | 16 - clover.xml | 1383 -------------------------------------------- 3 files changed, 1 insertion(+), 1400 deletions(-) delete mode 100644 badge-coverage.svg delete mode 100644 clover.xml diff --git a/README.md b/README.md index d12b112a..e0914138 100755 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ A full-featured blogging system for personal use. No frontend theme and anything * Can navigate articles based on categories. ### Installation Process -1. Execute `git clone https://github.com/alimranahmed/LaraBlog.git` on your terminal to download this project. +1. Execute `composer create-project alimranahmed/larablog` on your terminal to download this project. 2. Go to the project root directory and execute `composer install` to install all PHP dependencies of the project 3. Create a file named as .env and copy the content of .env.example to newly created .env file 4. Then execute `php artisan key:generate` on your terminal/cmd to generate environment key diff --git a/badge-coverage.svg b/badge-coverage.svg deleted file mode 100644 index af9453e5..00000000 --- a/badge-coverage.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - coverage - coverage - - - 30 % - 30 % - - \ No newline at end of file diff --git a/clover.xml b/clover.xml deleted file mode 100644 index c75b7bba..00000000 --- a/clover.xml +++ /dev/null @@ -1,1383 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From d3f7b1b1404cf53b63128a6be671c841746e7f15 Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:06:17 +0200 Subject: [PATCH 08/14] Composer package updated --- composer.lock | 56 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/composer.lock b/composer.lock index 13e3c5db..79a8bc7f 100644 --- a/composer.lock +++ b/composer.lock @@ -1570,16 +1570,16 @@ }, { "name": "laravel/framework", - "version": "v11.11.0", + "version": "v11.11.1", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "194102876df42f9f5bb618efa55fa7e15ebf40aa" + "reference": "c9b52e84bd18f155e5ba59b948c7da3e7f37e87f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/194102876df42f9f5bb618efa55fa7e15ebf40aa", - "reference": "194102876df42f9f5bb618efa55fa7e15ebf40aa", + "url": "https://api.github.com/repos/laravel/framework/zipball/c9b52e84bd18f155e5ba59b948c7da3e7f37e87f", + "reference": "c9b52e84bd18f155e5ba59b948c7da3e7f37e87f", "shasum": "" }, "require": { @@ -1771,7 +1771,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-06-18T17:40:27+00:00" + "time": "2024-06-20T10:54:53+00:00" }, { "name": "laravel/prompts", @@ -2639,16 +2639,16 @@ }, { "name": "nesbot/carbon", - "version": "3.5.0", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "415782b7e48223342f1a616c16c45a95b15b2318" + "reference": "39c8ef752db6865717cc3fba63970c16f057982c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/415782b7e48223342f1a616c16c45a95b15b2318", - "reference": "415782b7e48223342f1a616c16c45a95b15b2318", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/39c8ef752db6865717cc3fba63970c16f057982c", + "reference": "39c8ef752db6865717cc3fba63970c16f057982c", "shasum": "" }, "require": { @@ -2741,7 +2741,7 @@ "type": "tidelift" } ], - "time": "2024-06-03T17:25:54+00:00" + "time": "2024-06-20T15:52:59+00:00" }, { "name": "nette/schema", @@ -4909,16 +4909,16 @@ }, { "name": "spatie/laravel-permission", - "version": "6.7.0", + "version": "6.8.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-permission.git", - "reference": "17607924aa0aa89bc0153c2ce45ed7c55083367b" + "reference": "5147997e92001bf6cc5cd207eac554bc8f16c02a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/17607924aa0aa89bc0153c2ce45ed7c55083367b", - "reference": "17607924aa0aa89bc0153c2ce45ed7c55083367b", + "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/5147997e92001bf6cc5cd207eac554bc8f16c02a", + "reference": "5147997e92001bf6cc5cd207eac554bc8f16c02a", "shasum": "" }, "require": { @@ -4979,7 +4979,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-permission/issues", - "source": "https://github.com/spatie/laravel-permission/tree/6.7.0" + "source": "https://github.com/spatie/laravel-permission/tree/6.8.0" }, "funding": [ { @@ -4987,7 +4987,7 @@ "type": "github" } ], - "time": "2024-04-19T12:35:28+00:00" + "time": "2024-06-21T23:50:10+00:00" }, { "name": "spatie/laravel-signal-aware-command", @@ -9173,16 +9173,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.2.3", + "version": "11.2.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "8475044fbb0af57c8daea06bcfe21e2785401f97" + "reference": "be9e3ed32a1287a9bfda15936cc86fef4e4cf591" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/8475044fbb0af57c8daea06bcfe21e2785401f97", - "reference": "8475044fbb0af57c8daea06bcfe21e2785401f97", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/be9e3ed32a1287a9bfda15936cc86fef4e4cf591", + "reference": "be9e3ed32a1287a9bfda15936cc86fef4e4cf591", "shasum": "" }, "require": { @@ -9253,7 +9253,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.2.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.2.5" }, "funding": [ { @@ -9269,7 +9269,7 @@ "type": "tidelift" } ], - "time": "2024-06-19T05:31:11+00:00" + "time": "2024-06-20T13:11:31+00:00" }, { "name": "sebastian/cli-parser", @@ -10259,16 +10259,16 @@ }, { "name": "spatie/error-solutions", - "version": "1.0.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/spatie/error-solutions.git", - "reference": "202108314a6988ede156fba1b3ea80a784c1734a" + "reference": "d60d4d2ef4b7701c86134ded959667cac6215233" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/error-solutions/zipball/202108314a6988ede156fba1b3ea80a784c1734a", - "reference": "202108314a6988ede156fba1b3ea80a784c1734a", + "url": "https://api.github.com/repos/spatie/error-solutions/zipball/d60d4d2ef4b7701c86134ded959667cac6215233", + "reference": "d60d4d2ef4b7701c86134ded959667cac6215233", "shasum": "" }, "require": { @@ -10321,7 +10321,7 @@ ], "support": { "issues": "https://github.com/spatie/error-solutions/issues", - "source": "https://github.com/spatie/error-solutions/tree/1.0.0" + "source": "https://github.com/spatie/error-solutions/tree/1.0.1" }, "funding": [ { @@ -10329,7 +10329,7 @@ "type": "github" } ], - "time": "2024-06-12T14:49:54+00:00" + "time": "2024-06-21T10:09:00+00:00" }, { "name": "spatie/flare-client-php", From 9e9c54fa628b27de31d711447cbdb61f7c675e5d Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:06:42 +0200 Subject: [PATCH 09/14] Code formatted --- app/Livewire/Backend/Article/Index.php | 1 - app/Livewire/Backend/User/Form.php | 1 - app/Livewire/Frontend/Article/Comments.php | 1 + app/Livewire/Frontend/ContactForm.php | 1 + app/Models/Article.php | 2 +- app/Models/Category.php | 2 +- app/Models/Comment.php | 2 +- app/Models/Keyword.php | 2 +- app/Models/Subscriber.php | 2 +- app/Models/User.php | 2 +- app/Providers/AppServiceProvider.php | 4 +--- tests/TestCase.php | 2 +- 12 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app/Livewire/Backend/Article/Index.php b/app/Livewire/Backend/Article/Index.php index 9261814f..ff8b5c7c 100644 --- a/app/Livewire/Backend/Article/Index.php +++ b/app/Livewire/Backend/Article/Index.php @@ -6,7 +6,6 @@ use Illuminate\Contracts\View\View; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\Auth; -use Livewire\Attributes\On; use Livewire\Attributes\Url; use Livewire\Component; diff --git a/app/Livewire/Backend/User/Form.php b/app/Livewire/Backend/User/Form.php index 0034e58c..110e9ce0 100644 --- a/app/Livewire/Backend/User/Form.php +++ b/app/Livewire/Backend/User/Form.php @@ -4,7 +4,6 @@ use App\Models\User; use Illuminate\Contracts\View\View; -use Illuminate\Http\RedirectResponse; use Illuminate\Support\Arr; use Livewire\Component; use Spatie\Permission\Models\Role; diff --git a/app/Livewire/Frontend/Article/Comments.php b/app/Livewire/Frontend/Article/Comments.php index 200483df..81527e41 100644 --- a/app/Livewire/Frontend/Article/Comments.php +++ b/app/Livewire/Frontend/Article/Comments.php @@ -14,6 +14,7 @@ use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use Livewire\Component; + use function route; use function view; diff --git a/app/Livewire/Frontend/ContactForm.php b/app/Livewire/Frontend/ContactForm.php index 4fbe1fb0..7b8c23b8 100644 --- a/app/Livewire/Frontend/ContactForm.php +++ b/app/Livewire/Frontend/ContactForm.php @@ -8,6 +8,7 @@ use Illuminate\Contracts\View\View; use Illuminate\Support\Facades\Mail; use Livewire\Component; + use function route; use function view; diff --git a/app/Models/Article.php b/app/Models/Article.php index ead49896..4803b601 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -23,8 +23,8 @@ */ class Article extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Category.php b/app/Models/Category.php index 9aefb8a8..29f3426b 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -10,8 +10,8 @@ class Category extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Comment.php b/app/Models/Comment.php index 65841c24..2d87d662 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -8,8 +8,8 @@ class Comment extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Keyword.php b/app/Models/Keyword.php index bc57acc3..2ffc29f4 100644 --- a/app/Models/Keyword.php +++ b/app/Models/Keyword.php @@ -13,8 +13,8 @@ */ class Keyword extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Subscriber.php b/app/Models/Subscriber.php index d81db95d..57c00e53 100644 --- a/app/Models/Subscriber.php +++ b/app/Models/Subscriber.php @@ -7,8 +7,8 @@ class Subscriber extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; } diff --git a/app/Models/User.php b/app/Models/User.php index 39154641..94931a1b 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -17,10 +17,10 @@ */ class User extends Authenticatable { + use CanFormatDates; use HasFactory; use HasRoles; use Notifiable; - use CanFormatDates; protected $casts = [ 'email_verified_at' => 'datetime', diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 0297add8..e4bee171 100755 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -21,7 +21,5 @@ public function boot(): void /** * Register any application services. */ - public function register(): void - { - } + public function register(): void {} } diff --git a/tests/TestCase.php b/tests/TestCase.php index 304f8c46..c58ad548 100755 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -7,6 +7,6 @@ abstract class TestCase extends BaseTestCase { - use DatabaseTransactions; use CreatesApplication; + use DatabaseTransactions; } From 99102c493991be60c9ac081d5626dbce17f7ed0b Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:30:11 +0200 Subject: [PATCH 10/14] Code coverage added in github action --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 1e4aba2c..efed8a78 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -76,7 +76,7 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml + php artisan test --coverage --coverage-clover tests/coverage/clover.xml vendor/bin/pint - name: Generate test coverage badge From 84e5c3254f219c1ad5983b9e8335a2322d782ff6 Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:32:52 +0200 Subject: [PATCH 11/14] Code coverage added in github action --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2603df5b..edfc2a07 100755 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ _ide_helper.php *~ *.swp *.swo +/clover.xml .phpunit.result.cache From a0ae74a589ffdc74f96cdaaf4a7827de48538190 Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:34:32 +0200 Subject: [PATCH 12/14] Code coverage added in github action --- .github/workflows/build_and_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index efed8a78..04260077 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -76,7 +76,7 @@ jobs: DB_USERNAME: root DB_PASSWORD: password run: | - php artisan test --coverage --coverage-clover tests/coverage/clover.xml + php artisan test --coverage --coverage-clover clover.xml vendor/bin/pint - name: Generate test coverage badge From 207554778025d146ce5b5ced7b070175a60f2bff Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:46:08 +0200 Subject: [PATCH 13/14] Coverage badge removed --- tests/coverage/badge-coverage.svg | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 tests/coverage/badge-coverage.svg diff --git a/tests/coverage/badge-coverage.svg b/tests/coverage/badge-coverage.svg deleted file mode 100644 index af9453e5..00000000 --- a/tests/coverage/badge-coverage.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - coverage - coverage - - - 30 % - 30 % - - \ No newline at end of file From 7192e39bb14b3afbf54be75401bb61171bb225fc Mon Sep 17 00:00:00 2001 From: Github Actions Bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 20:47:28 +0000 Subject: [PATCH 14/14] Update code coverage badge --- tests/coverage/badge-coverage.svg | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/coverage/badge-coverage.svg diff --git a/tests/coverage/badge-coverage.svg b/tests/coverage/badge-coverage.svg new file mode 100644 index 00000000..af9453e5 --- /dev/null +++ b/tests/coverage/badge-coverage.svg @@ -0,0 +1,16 @@ + + + + + + + + + coverage + coverage + + + 30 % + 30 % + + \ No newline at end of file