Skip to content

Commit

Permalink
Maybe the native PHP server suddenly works again?
Browse files Browse the repository at this point in the history
Signed-off-by: JVT038 <[email protected]>
  • Loading branch information
JVT038 committed Feb 29, 2024
1 parent cba8710 commit ed20506
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,23 @@ jobs:
- name: Run PHPUnit
run: phpunit -c ./settings/phpunit.xml --testsuite unit

- name: Build docker development image
run: docker build --target development --tag movary:ci ./build/php/

- name: Run development image
run: docker run --name movary --rm -d -v /home/runner/work/movary/movary:/app --env-file=test.env --network "host" movary:ci

- name: Prepare for the tests
run: |
docker exec movary php bin/console.php database:migration:migrate &&
docker exec movary php bin/console.php user:create [email protected] password1234 testUser true
# - name: Build docker development image
# run: docker build --target development --tag movary:ci ./build/php/
#
# - name: Run development image
# run: docker run --name movary --rm -d -v /home/runner/work/movary/movary:/app --env-file=test.env --network "host" movary:ci
#
# - name: Prepare for the tests
# run: |
# docker exec movary php bin/console.php database:migration:migrate &&
# docker exec movary php bin/console.php user:create [email protected] password1234 testUser true

- name: Run the HTTP tests
run: |
php -S 127.0.0.1:80 -t public
alias ijhttp="./ijhttp/ijhttp"
php bin/console.php database:migration:migrate
php bin/console.php user:create [email protected] password1234 testUser true
./ijhttp/ijhttp tests/rest/api/authentication.http --env-file tests/rest/api/http-client.env.json --env CI
- name: Remove development image
Expand Down

0 comments on commit ed20506

Please sign in to comment.