-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add command to copy files from vendor to theme (#133) #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c73062d
c38d3b5
b1a8107
f7e1026
fc622d8
cb1e356
3ac3898
6eb5c46
60c302c
9125d31
e57c1ba
6cb362f
7606204
9d057bd
cee2180
959d9ec
3bd238d
98b88f7
2da462a
dcb88c9
50b4f16
e97c0fc
3885c0e
03911ed
3300938
c6d52ea
b7637e5
0a73a1b
789396b
203d83f
24a38f1
110cc92
d84ec1e
d40b3c5
4c2d843
0d61b55
9c9ad7e
b7fef74
be9380c
91efad8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -126,10 +126,10 @@ jobs: | |||||||||||||||||||||||||||||
| bin/magento mageforge:hyva:compatibility:check --show-all | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Third party only:" | ||||||||||||||||||||||||||||||
| bin/magento m:h:c:c --third-party-only | ||||||||||||||||||||||||||||||
| bin/magento mageforge:hyva:compatibility:check --third-party-only | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Detailed output:" | ||||||||||||||||||||||||||||||
| bin/magento m:h:c:c --show-all --detailed | ||||||||||||||||||||||||||||||
| bin/magento mageforge:hyva:compatibility:check --show-all --detailed | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: Test Theme Cleaner | ||||||||||||||||||||||||||||||
| working-directory: magento2 | ||||||||||||||||||||||||||||||
|
|
@@ -139,7 +139,6 @@ jobs: | |||||||||||||||||||||||||||||
| bin/magento mageforge:theme:clean --all --dry-run | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Test aliases:" | ||||||||||||||||||||||||||||||
| bin/magento m:t:c --help | ||||||||||||||||||||||||||||||
| bin/magento frontend:clean --help | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: Test Theme Name Suggestions | ||||||||||||||||||||||||||||||
|
|
@@ -155,11 +154,24 @@ jobs: | |||||||||||||||||||||||||||||
| echo "CleanCommand with invalid name:" | ||||||||||||||||||||||||||||||
| bin/magento mageforge:theme:clean Magent/lum --dry-run || echo "Expected failure - suggestions shown" | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| - name: Test Inspector Status | ||||||||||||||||||||||||||||||
| - name: Test Copy From Vendor | ||||||||||||||||||||||||||||||
| working-directory: magento2 | ||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||
| echo "=== Inspector Tests ===" | ||||||||||||||||||||||||||||||
| bin/magento mageforge:theme:inspector status | ||||||||||||||||||||||||||||||
| echo "=== Copy From Vendor Tests ===" | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Test help command:" | ||||||||||||||||||||||||||||||
| bin/magento mageforge:copy:template --help | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Test alias help:" | ||||||||||||||||||||||||||||||
| bin/magento theme:copy --help | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Test dry-run without required arguments (expect validation failure but command should execute):" | ||||||||||||||||||||||||||||||
| bin/magento mageforge:copy:template --dry-run || echo "Expected failure - missing or invalid arguments for copy-from-vendor" | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "Test alias dry-run without required arguments (expect validation failure but alias should execute):" | ||||||||||||||||||||||||||||||
| bin/magento theme:copy --dry-run || echo "Expected failure - missing or invalid arguments for theme:copy alias" | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| echo "✓ Copy from vendor command and alias available and basic execution paths exercised" | ||||||||||||||||||||||||||||||
|
Comment on lines
+165
to
+174
|
||||||||||||||||||||||||||||||
| echo "Test alias help:" | |
| bin/magento theme:copy --help | |
| echo "Test dry-run without required arguments (expect validation failure but command should execute):" | |
| bin/magento mageforge:copy:template --dry-run || echo "Expected failure - missing or invalid arguments for copy-from-vendor" | |
| echo "Test alias dry-run without required arguments (expect validation failure but alias should execute):" | |
| bin/magento theme:copy --dry-run || echo "Expected failure - missing or invalid arguments for theme:copy alias" | |
| echo "✓ Copy from vendor command and alias available and basic execution paths exercised" | |
| echo "Test dry-run without required arguments (expect validation failure but command should execute):" | |
| bin/magento mageforge:copy:template --dry-run || echo "Expected failure - missing or invalid arguments for copy-from-vendor" | |
| echo "✓ Copy from vendor command available and basic execution paths exercised" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -32,15 +32,15 @@ jobs: | |||||
| - 3306:3306 | ||||||
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||||||
|
|
||||||
| opensearch: | ||||||
| image: opensearchproject/opensearch:2.11.0 | ||||||
| ports: | ||||||
| - 9200:9200 | ||||||
| elasticsearch: | ||||||
| image: elasticsearch:7.17.25 | ||||||
| env: | ||||||
| discovery.type: single-node | ||||||
| plugins.security.disabled: true | ||||||
| OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m | ||||||
| options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 | ||||||
| xpack.security.enabled: false | ||||||
dermatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| ES_JAVA_OPTS: "-Xms512m -Xmx512m" | ||||||
| ports: | ||||||
| - 9200:9200 | ||||||
| options: --health-cmd="curl -s http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 | ||||||
|
Comment on lines
+35
to
+43
|
||||||
|
|
||||||
| steps: | ||||||
| - name: Checkout code | ||||||
|
|
@@ -136,22 +136,103 @@ jobs: | |||||
| bin/magento mageforge:theme:inspector --help | ||||||
| bin/magento mageforge:hyva:compatibility:check --help | ||||||
| bin/magento mageforge:hyva:tokens --help | ||||||
| bin/magento mageforge:copy:template --help | ||||||
|
|
||||||
| echo "Verify command aliases work:" | ||||||
| bin/magento m:s:v --help | ||||||
| bin/magento m:s:c --help | ||||||
| bin/magento m:t:l --help | ||||||
| bin/magento m:t:b --help | ||||||
| bin/magento m:t:w --help | ||||||
| bin/magento m:t:c --help | ||||||
| bin/magento m:h:c:c --help | ||||||
| bin/magento frontend:list --help | ||||||
| bin/magento frontend:build --help | ||||||
| bin/magento frontend:watch --help | ||||||
| bin/magento frontend:clean --help | ||||||
| bin/magento theme:copy --help | ||||||
|
||||||
| bin/magento theme:copy --help | |
| bin/magento copy:template --help |
Uh oh!
There was an error while loading. Please reload this page.