Skip to content

Commit

Permalink
OXDEV-7733 Improve workflow stability
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Apr 10, 2024
1 parent 1bbb401 commit 66db346
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,18 @@ jobs:
- name: Install dependencies and reset shop
run: |
docker compose exec -T php composer update --no-interaction
- name: Start all other not running containers in advance
run: |
make up
sleep 2
- name: Setup shop and activate modules/themes
docker compose exec php vendor/bin/oe-console oe:setup:shop --db-host=mysql --db-port=3306 --db-name=example --db-user=root \
--db-password=root --shop-url=http://localhost.local/ --shop-directory=/var/www/source/ \
--compile-directory=/var/www/source/tmp/

docker compose exec -T php vendor/bin/oe-console oe:theme:activate apex
docker compose exec -T php vendor/bin/oe-console oe:module:activate oe_moduletemplate

- name: Install module dependencies
Expand All @@ -109,16 +116,10 @@ jobs:
- name: Run codeception tests
if: always()
run: |
make up
docker compose exec -T \
--workdir=/var/www/test-module \
php composer tests-codeception
- name: Stop containers
run: |
docker compose down
sleep 2
- name: Show docker log
if: always()
run: |
Expand Down

0 comments on commit 66db346

Please sign in to comment.