Skip to content

Commit 39e8ca8

Browse files
committed
Added Type Coverage to test workflow and updated getPath and buildClass methods with @pest-ignore-type annotation
1 parent 1f2a105 commit 39e8ca8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,8 @@ jobs:
5454
- name: PhpStan
5555
run: ./vendor/bin/phpstan --configuration="phpstan.neon"
5656

57+
- name: Type Coverage
58+
run: ./vendor/bin/pest --type-coverage --min=100
59+
5760
- name: Tests
5861
run: ./vendor/bin/pest --parallel --order-by random --stop-on-failure --coverage --min=90

src/Console/MakeActionCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function getStub(): string
4141

4242
// The reason why publishing this method is to ensure the
4343
// action will be created in the correct path fraction.path
44-
protected function getPath($name): string
44+
protected function getPath($name): string // @pest-ignore-type
4545
{
4646
$path = config('fraction.path');
4747

@@ -60,7 +60,7 @@ protected function getPath($name): string
6060

6161
// The reason why publishing this method is to ensure override the {{ name }}
6262
// placeholder in the stub file with the formatted name of the action
63-
protected function buildClass($name): string
63+
protected function buildClass($name): string // @pest-ignore-type
6464
{
6565
$stub = $this->files->get($this->getStub());
6666

0 commit comments

Comments
 (0)