summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-21 16:38:40 +0200
committerGitHub <noreply@github.com>2022-08-21 16:38:40 +0200
commit49f79101c314f760f36d1e6ef49758069622812c (patch)
treed509587880f83af7d45fd6f8c4e6e4f547a95e89 /.github
parentb1cbf80933658742c7794614b714fe6782441920 (diff)
try to speedup the api testing by hosting the feeds locally (#1874)
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/api-integration-tests.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/api-integration-tests.yml b/.github/workflows/api-integration-tests.yml
index 117e7af49..eef085cac 100644
--- a/.github/workflows/api-integration-tests.yml
+++ b/.github/workflows/api-integration-tests.yml
@@ -114,12 +114,17 @@ jobs:
working-directory: ../server
run: |
php -S localhost:8080 &> /tmp/webserver.log &
+ cd apps/news/tests/test_helper/feeds && php -S localhost:8090 &> /tmp/feedserver.log &
+
sleep 2
+
+ cd ${{ github.workspace }}/../server
bats apps/news/tests/api
# Kill php server
kill %1
+ kill %2
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -131,7 +136,14 @@ jobs:
- name: Functional tests
working-directory: ../server
- run: bats apps/news/tests/command
+ run: |
+ cd apps/news/tests/test_helper/feeds && php -S localhost:8090 &> /tmp/feedserver.log &
+
+ sleep 2
+
+ cd ${{ github.workspace }}/../server
+
+ bats apps/news/tests/command
- name: Prep PHP tests
working-directory: ../server/apps/news