Skip to content

Commit

Permalink
Require module instead of checking it out
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Dec 28, 2023
1 parent d2aeb3c commit 944fdbe
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
matrix:
magento_version: [2.4.6]
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: 'install fresh magento repo'
uses: MAD-I-T/magento-actions@v3.25
env:
Expand All @@ -42,11 +47,19 @@ jobs:
magento_version: ${{ matrix.magento_version }}
no_push: 1 ## add this arg to not push to the repo ideal for quick test on specific version


### Download our code in custom dir###
- uses: actions/checkout@v3
- name: 'Configure our repo'
uses: php-actions/composer@v6
with:
path: magento/app/code/Sequra/Core
command: config repositories.sequra/magento2-core vcs https://github.com/sequra/magento2-core
working_dir: magento
- name: 'Configure our repo'
uses: php-actions/composer@v6
with:
command: require repositories.sequra/magento2-core:"dev-${{ steps.extract_branch.outputs.branch }}"
working_dir: magento

- name: 'debug'
run: cat magento/composer.json

- name: 'launch magento2 unit test'
if: always()
Expand All @@ -55,7 +68,7 @@ jobs:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'unit-test'
unit_test_subset_path: 'app/code/Sequra/Core/Test/Unit'
unit_test_subset_path: 'vendor/sequra/magento2-core/Test/Unit'
override_settings: 1

# Integrations tests
Expand Down

0 comments on commit 944fdbe

Please sign in to comment.