Skip to content

Commit

Permalink
Improve CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
bytes-commerce committed Aug 3, 2023
1 parent f37739c commit 962da6b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,19 @@ jobs:
magento
key: "magento-2.4.6-with-php-${{ matrix.php-version }}"

- name: "Create Magento 2.4.6 project with testing dependencies"
- name: "Create Magento 2.4.6 project"
run: |
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.4.6 magento
composer create-project --no-progress --no-install --repository=https://repo.magento.com/ magento/project-community-edition=2.4.6 magento
if: hashFiles('magento/composer.json') == ''

- name: "Add testing dependencies"
run: |
composer config --no-plugins allow-plugins.magento/* true
composer config --no-plugins allow-plugins.php-http/discovery true
composer config --no-plugins allow-plugins.laminas/laminas-dependency-plugin true
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --no-progress behat/behat tkotosz/test-area-magento2
composer install --no-progress
- name: "Checkout"
uses: "actions/checkout@v2"
with:
Expand All @@ -84,6 +92,7 @@ jobs:
run: |
rm -f app/etc/env.php
mkdir -p pub/static pub/media
composer require --dev behat/behat tkotosz/test-area-magento2
bin/magento setup:install \
--admin-email="magento@magento.com" \
--admin-firstname="admin" \
Expand All @@ -105,9 +114,9 @@ jobs:
--timezone="Europe/Amsterdam" \
--use-rewrites=1 \
--use-secure-admin=0 \
--use-secure=0 \
-vvv
bin/magento setup:upgrade
--use-secure=0
bin/magento --quiet deploy:mode:set developer
bin/magento --quiet setup:upgrade
working-directory: 'magento'

- name: "Install BehatMagento2 Extension"
Expand Down

0 comments on commit 962da6b

Please sign in to comment.