File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 19
19
magento-version :
20
20
type : string
21
21
steps :
22
+ - attach_workspace :
23
+ at : ~/Sites
22
24
- checkout
23
25
- php/install_php :
24
26
version : << parameters.php-version >>
@@ -69,19 +71,26 @@ jobs:
69
71
bin/composer require algolia/algoliasearch-client-php "^4.0" -W
70
72
bin/magento setup:di:compile
71
73
bin/magento module:status Algolia_AlgoliaSearch
74
+ - persist_to_workspace :
75
+ root : ~/Sites
76
+ paths :
77
+ - ~/Sites
72
78
73
79
magento-test :
74
- docker :
75
- - image : cimg/php:8.2
80
+ executor :
81
+ name : magento-executor
82
+ php-version : 8.2
83
+ working_directory : ~/Sites
76
84
steps :
77
85
- checkout
78
86
- run :
79
87
name : Run PHP Unit Tests
80
88
command : |
89
+ composer config --global http-basic.repo.magento.com ${MAGENTO_AUTH_USERNAME} ${MAGENTO_AUTH_PASSWORD}
81
90
composer require --dev phpunit/phpunit
82
91
vendor/bin/phpunit --testsuite Unit
83
92
- store_test_results :
84
- path : ~/project /vendor/bin/phpunit
93
+ path : ~/Sites /vendor/bin/phpunit
85
94
86
95
workflows :
87
96
magento-build-and-test :
@@ -95,4 +104,6 @@ workflows:
95
104
branches :
96
105
only :
97
106
- MAGE-991
98
- - magento-test
107
+ - magento-test :
108
+ requires :
109
+ - magento-build
You can’t perform that action at this time.
0 commit comments