Skip to content

Commit 2ca0f85

Browse files
committed
Update integration test to actually test clear command functionality
1 parent 8fa5cf5 commit 2ca0f85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/run-integration-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ jobs:
5454
- name: Execute clear run
5555
run: |
5656
cd sample
57+
mkdir -p "storage/debugbar/" && touch "storage/debugbar/foo.json"
5758
php artisan debugbar:clear
5859
- name: Check file count in logs
5960
run: |
60-
if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ];then exit 1;fi
61+
if [ `ls -1q "sample/storage/debugbar/" | wc -l` -gt 0 ];then exit 1;fi
6162
php-laravel-integration-tests:
6263
runs-on: ubuntu-latest
6364
timeout-minutes: 15
@@ -103,7 +104,8 @@ jobs:
103104
- name: Execute generate run
104105
run: |
105106
cd sample
107+
mkdir -p "storage/debugbar/" && touch "storage/debugbar/foo.json"
106108
php artisan debugbar:clear
107109
- name: Check file count in logs
108110
run: |
109-
if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ];then exit 1;fi
111+
if [ `ls -1q "sample/storage/debugbar/" | wc -l` -gt 0 ];then exit 1;fi

0 commit comments

Comments
 (0)