Skip to content

Commit 6103b0c

Browse files
committed
Fix workflow for Laravel tests
1 parent c9fbf42 commit 6103b0c

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ jobs:
4343
run: "composer update --no-interaction --no-progress"
4444

4545
- name: "Remove Laravel"
46-
run: "composer remove --dev laravel/framework"
46+
run: "composer remove --dev laravel/framework orchestra/testbench"
47+
48+
- name: "Remove Laravel tests"
49+
run: "rm -rf tests/Laravel"
4750

4851
- name: "Tests"
4952
id: tests

CONTRIBUTION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ composer run check
4343
```bash
4444
composer run check
4545
```
46+
## Tests
47+
48+
- Tests are executed with Laravel and without Laravel (separate GitHub action, tests/Laravel folder is removed).

tests/GetValueFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Wrkflow\GetValue\GetValueFactory;
1313
use Wrkflow\GetValue\Strategies\NoTransformerStrategy;
1414
use Wrkflow\GetValueTests\Builders\CustomExceptionBuilder;
15-
use Wrkflow\GetValueTests\Laravel\ValidatorMock;
15+
use Wrkflow\GetValueTests\Mocks\ValidatorMock;
1616

1717
class GetValueFactoryTest extends TestCase
1818
{

tests/Laravel/ValidatorMock.php renamed to tests/Mocks/ValidatorMock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Wrkflow\GetValueTests\Laravel;
5+
namespace Wrkflow\GetValueTests\Mocks;
66

77
use Illuminate\Contracts\Validation\Validator;
88
use Illuminate\Support\MessageBag;

0 commit comments

Comments
 (0)