mirror of
https://github.com/graycoreio/github-actions-magento2.git
synced 2026-06-13 13:14:53 +00:00
feat: allow using "next" version on supported version (#58)
This also allows using the action in https://github.com/mage-os/generate-mirror-repo-js where the test module is an external package installed with composer. In this case, no local path repo configuration is needed. Co-authored-by: Vinai Kopp <Vinai@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,11 @@ inputs:
|
||||
default: "2"
|
||||
description: "The version of composer to use"
|
||||
|
||||
use_local_source:
|
||||
required: false
|
||||
default: "true"
|
||||
description: "Whether or not you want to test your local package or not."
|
||||
|
||||
source_folder:
|
||||
required: true
|
||||
default: $GITHUB_WORKSPACE
|
||||
@@ -86,6 +91,7 @@ runs:
|
||||
name: Add Github Repo for Testing
|
||||
working-directory: ${{ inputs.magento_directory }}
|
||||
shell: bash
|
||||
if: ${{ inputs.use_local_source == 'true' }}
|
||||
|
||||
- run: |
|
||||
composer config --no-interaction allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
|
||||
|
||||
Reference in New Issue
Block a user