Skip to content

Commit 4524d16

Browse files
authored
Merge pull request #2 from humhub/fix/php-test.yml
Update php-test.yml to run on develop branch
2 parents bf2f051 + cd4aff5 commit 4524d16

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/php-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,14 @@ jobs:
128128
php ../../vendor/bin/codecept build
129129
130130
- name: Run test server
131-
run: php --server 127.0.0.1:8080 &>/tmp/phpserver.log &
131+
run: |
132+
# Temporary condition while branch "master" doesn't use pretty URLs on acceptance tests
133+
if cat $GITHUB_WORKSPACE/.github/workflows/php-test.yml | grep -q ":8080 index-test.php"
134+
then
135+
php --server 127.0.0.1:8080 index-test.php &>/tmp/phpserver.log &
136+
else
137+
php --server 127.0.0.1:8080 &>/tmp/phpserver.log &
138+
fi
132139
133140
- name: Setup chromedriver
134141
run: chromedriver --url-base=/wd/hub &

0 commit comments

Comments
 (0)