diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 14306a2a..3aca150f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [12.x]
+ node-version: ['12.x', '14.x']
name: Test asset generation process on Node ${{ matrix.node-version }}
@@ -40,7 +40,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
- php-versions: ['7.3', '7.4']
+ php-versions: ['7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
diff --git a/composer.json b/composer.json
index 1c866210..ee0c2049 100644
--- a/composer.json
+++ b/composer.json
@@ -62,7 +62,7 @@
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
- "lint": "./vendor/bin/phpcs",
+ "lint": "./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1",
"test": "./vendor/bin/phpunit",
"code-coverage": "./vendor/bin/phpunit --coverage-clover test-coverage.xml"
},
diff --git a/database/seeders/ExampleSeeder.php b/database/seeders/ExampleSeeder.php
index f1bd8720..93149b81 100644
--- a/database/seeders/ExampleSeeder.php
+++ b/database/seeders/ExampleSeeder.php
@@ -6,6 +6,7 @@ use App\Models\Link;
use App\Models\LinkList;
use App\Models\Tag;
use App\Models\User;
+use Exception;
use Illuminate\Database\Seeder;
class ExampleSeeder extends Seeder
@@ -14,8 +15,9 @@ class ExampleSeeder extends Seeder
* Run the database seeds.
*
* @return void
+ * @throws Exception
*/
- public function run()
+ public function run(): void
{
// Generate users, categories and tags
User::factory()->create();
diff --git a/phpcs.xml b/phpcs.xml
index 780038fd..774c11e9 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -4,16 +4,18 @@
./app
+ ./database/factories
+ ./database/seeders
./tests
-
+
-
+