Skip to content

Commit

Permalink
try to speedup the api testing by hosting the feeds locally
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
  • Loading branch information
Grotax committed Aug 19, 2022
1 parent 410a1e4 commit ccaf25c
Show file tree
Hide file tree
Showing 4 changed files with 2,471 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/api-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/api/helpers/settings.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
user=admin
NC_FEED="https://nextcloud.com/blog/static-feed/"
HEISE_FEED="https://www.heise.de/rss/heise-atom.xml"
NC_FEED="http://localhost:8090/Nextcloud.rss"
HEISE_FEED="http://localhost:8090/heise.xml"
BASE_URLv1="http://localhost:8080/index.php/apps/news/api/v1-2"
Loading

0 comments on commit ccaf25c

Please sign in to comment.