Skip to content

Commit

Permalink
Using magento composer
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Dec 28, 2023
1 parent c709996 commit 2833606
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@ jobs:
process: 'install-magento'
magento_version: ${{ matrix.magento_version }}
no_push: 1 ## add this arg to not push to the repo ideal for quick test on specific version

- name: 'Configure our repo'
uses: php-actions/composer@v6

- uses: "shivammathur/setup-php@v2"
with:
command: config repositories.sequra/magento2-core vcs https://github.com/sequra/magento2-core
working_dir: magento
php-version: "8.2"
- name: 'Configure our repo'
uses: php-actions/composer@v6
with:
command: require sequra/magento2-core:"dev-${{ steps.extract_branch.outputs.branch }}"
working_dir: magento
working-directory: magento
run: |
vendor/bin/composer config repositories.sequra/magento2-core vcs https://github.com/sequra/magento2-core
vendor/bin/composer require sequra/magento2-core:"dev-${{ steps.extract_branch.outputs.branch }}"
- name: 'debug'
run: cat magento/composer.json
Expand All @@ -70,6 +68,7 @@ jobs:
process: 'unit-test'
unit_test_subset_path: 'vendor/sequra/magento2-core/Test/Unit'
override_settings: 1
magento_version: ${{ matrix.magento_version }}

# Integrations tests
- name: "copy integration test's phpunit.xml"
Expand Down

0 comments on commit 2833606

Please sign in to comment.