Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/civicrm-phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ jobs:
# docker exec does not populate it from -w on its own.
# --log-junit writes to /tmp inside the container, not the extension
# dir: that's a bind mount owned by the runner's user, and www-data
# can't write into it.
# can't write into it. For the same reason, --do-not-cache-result
# stops PHPUnit trying (and warning) to write .phpunit.result.cache.
docker exec -u www-data \
-w ${{ env.EXTENSION_DIR }} \
-e PWD=${{ env.EXTENSION_DIR }} \
wordpress phpunit9 --log-junit /tmp/phpunit-results.xml ${{ inputs.PHPUNIT_ARGS }}
wordpress phpunit9 --do-not-cache-result --log-junit /tmp/phpunit-results.xml ${{ inputs.PHPUNIT_ARGS }}

- name: Copy PHPUnit results out of container
if: always()
Expand Down