Skip to content

Commit

Permalink
remove build
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 5, 2023
1 parent 5e8c4b0 commit 3ed298e
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/test_buildx_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Build image
run: |
docker build . -t moodle-php-apache
- name: Run tests
run: |
docker run --name test0 -d -p 8000:80 \
-v $PWD/tests/fixtures:/var/www/html \
-v $PWD/tests/docker-entrypoint.d:/docker-entrypoint.d \
-e PHP_INI-memory_limit=256M \
-e PHP_INI-apc.enabled=0 \
-e PHP_INI-apc.enable_cli=0 \
-e PHP_INI-pcov.enabled=1 \
-e PHP_INI-upload_max_filesize=20M \
-e PHP_EXTENSION_xhprof=1 \
moodle-php-apache
docker exec test0 php /var/www/html/test.php
docker exec test0 php /var/www/html/check-ini.php
docker exec test0 php /var/www/html/check-entrypoint-scripts.php
curl --fail http://127.0.0.1:8000/test.php
curl --fail http://127.0.0.1:8000/check-ini.php
# Verify that CLI execution only includes the expected output (if we discard stderr).
echo zero
docker run --rm --name test1 moodle-php-apache php /var/www/html/check-stderr.php 2>/dev/null
echo one
stdout=$(docker run --rm --name test1 moodle-php-apache php /var/www/html/check-stderr.php 2>/dev/null)
[[ ${stdout} == "Hello World!" ]] && echo "OK" || echo "Fail"
# Verify that stderr still contains information about the bootstrap.
Expand Down

0 comments on commit 3ed298e

Please sign in to comment.