Skip to content

Commit

Permalink
Switch back to docker due to lack of permission for listening on port 80
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 3253b92 commit a5b34a6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +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=.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: |
alias ijhttp="./ijhttp/ijhttp"
php bin/console.php database:migration:migrate
php bin/console.php user:create [email protected] password1234 testUser true
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
# sudo php -S 127.0.0.1:80 -t public
./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 a5b34a6

Please sign in to comment.