Skip to content

Commit

Permalink
CI - Add service
Browse files Browse the repository at this point in the history
  • Loading branch information
morawskim committed Oct 4, 2023
1 parent 9add5c5 commit 30b531c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: "Run tests"
runs-on: "ubuntu-20.04"
env:
LOREM_SPACE_SELF_OWNED_URL: http://localhost:5000/image/
LOREM_SPACE_SELF_OWNED_URL: http://localhost:8080/image/
strategy:
matrix:
include:
Expand Down Expand Up @@ -60,6 +60,11 @@ jobs:
- php-version: 8.2
xdebug: "xdebug"
prefer-lowest: ""
services:
loremspace:
image: morawskim/lorem-space-backend
ports:
- 8080:8080
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
Expand Down Expand Up @@ -89,6 +94,7 @@ jobs:
wget --no-verbose -Oimages/mycategory/photo.jpg https://picsum.photos/200/300
./lorem-server --host 127.0.0.1:5000 --dir ./images &
echo End setup for lorem.space API
wget -Oimages/mycategory/test.jpg http://localhost:8080/image
echo Xdebug env - ${{ matrix.xdebug }}
if [[ "${{ matrix.xdebug }}" == "xdebug2" ]]; then vendor/bin/phpunit --verbose --coverage-clover=coverage.xml; fi
if [[ "${{ matrix.xdebug }}" == "xdebug" ]]; then php -dxdebug.mode=coverage vendor/bin/phpunit --verbose --coverage-clover=coverage.xml; fi
Expand Down

0 comments on commit 30b531c

Please sign in to comment.