-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch back to docker due to lack of permission for listening on port 80
Signed-off-by: JVT038 <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|