From 49f79101c314f760f36d1e6ef49758069622812c Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Sun, 21 Aug 2022 16:38:40 +0200 Subject: try to speedup the api testing by hosting the feeds locally (#1874) Signed-off-by: Benjamin Brahmer --- .github/workflows/api-integration-tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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 -- cgit v1.2.3