Skip to content

Commit cd86cbc

Browse files
scott graysonscott grayson
authored andcommitted
Fix duplicate workflows and ensure test directories exist before running tests
1 parent a007ccb commit cd86cbc

File tree

5 files changed

+186
-184
lines changed

5 files changed

+186
-184
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
workflow_dispatch:
1919

2020
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref }}
21+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
2222
cancel-in-progress: true
2323

2424
jobs:
@@ -54,5 +54,8 @@ jobs:
5454
composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
5555
- name: Clear Pest cache
5656
run: rm -rf vendor/pestphp/pest/.temp/test-results || true
57+
- name: Ensure test directories exist
58+
run: |
59+
mkdir -p tests/Feature tests/Unit
5760
- name: Run tests
5861
run: composer test

phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
<testsuite name="Feature">
1212
<directory>tests/Feature</directory>
1313
</testsuite>
14-
<testsuite name="Public">
15-
<directory>tests/Public</directory>
16-
</testsuite>
1714
</testsuites>
1815
<source>
1916
<include>

tests/Pest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
use Tapp\FilamentHelp\Tests\TestCase;
44

55
uses(TestCase::class)->in('Feature', 'Unit');
6+
7+
// Explicitly exclude any non-existent directories that Pest might try to discover
8+
// This prevents errors when Pest tries to discover deleted test directories

0 commit comments

Comments
 (0)