Skip to content

Commit

Permalink
Fix phpunit tests on gha
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Feb 12, 2025
1 parent 7eed44d commit 3d8eec6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ jobs:
echo "${{ secrets.MODULE_SETTINGS }}" > source/var/configuration/environment/1.yaml
docker compose exec -T php php bin/oe-console oe:module:apply-configuration
- name: Create .env-file
continue-on-error: true
working-directory: source/test-module/tests
run: |
echo "${{ secrets.DOTENV }}" > .env
- name: Stop containers
run: |
docker compose down
Expand Down Expand Up @@ -173,6 +167,13 @@ jobs:
make up
sleep 2
- name: Create .env-file
continue-on-error: true
run: |
docker compose exec -T php composer require --dev dg/bypass-finals
cd source/vendor/${{ env.PACKAGE_NAME }}/tests
echo "${{ secrets.ENVIRONMENT }}" >> .env
- name: Run tests
run: |
docker compose exec -T \
Expand All @@ -183,9 +184,6 @@ jobs:
-e XDEBUG_MODE=coverage \
-e ADDITIONAL_TEST_PATHS='/var/www/vendor/${{ env.PACKAGE_NAME }}/tests' \
php php vendor/bin/runtests \
--coverage-clover=/var/www/coverage.xml \
--coverage-html=/var/www/coverage \
--coverage-text \
--log-junit=/var/www/phpunit.xml \
AllTestsUnit
Expand All @@ -197,6 +195,7 @@ jobs:
path: |
source/coverage.xml
source/phpunit.xml
source/source/log/oxideshop.log
codeception_tests:
strategy:
Expand Down

0 comments on commit 3d8eec6

Please sign in to comment.