Skip to content

Commit 60af967

Browse files
committed
Fix the action
1 parent d9eaf71 commit 60af967

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/install-test.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,15 @@ jobs:
6969
composer create-project rcarvello/webmvcframework testapp --prefer-dist --no-interaction
7070
cd testapp
7171
php setup-config.php
72-
composer run dev
72+
composer run dev > server.log 2>&1 &
73+
echo $! > server.pid
74+
sleep 5
75+
76+
- name: Test server
77+
run: curl -s http://localhost:8000 | head -n 20
78+
79+
- name: Stop dev server
80+
run: |
81+
pkill -f "composer run dev" || true
82+
7383

0 commit comments

Comments
 (0)