Skip to content

Commit 6c97467

Browse files
fix: enhance CircleCI configuration for Magento build and test workflow
1 parent bf0ff20 commit 6c97467

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.circleci/config.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
magento-version:
2020
type: string
2121
steps:
22+
- attach_workspace:
23+
at: ~/Sites
2224
- checkout
2325
- php/install_php:
2426
version: << parameters.php-version >>
@@ -69,19 +71,26 @@ jobs:
6971
bin/composer require algolia/algoliasearch-client-php "^4.0" -W
7072
bin/magento setup:di:compile
7173
bin/magento module:status Algolia_AlgoliaSearch
74+
- persist_to_workspace:
75+
root: ~/Sites
76+
paths:
77+
- ~/Sites
7278

7379
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
7684
steps:
7785
- checkout
7886
- run:
7987
name: Run PHP Unit Tests
8088
command: |
89+
composer config --global http-basic.repo.magento.com ${MAGENTO_AUTH_USERNAME} ${MAGENTO_AUTH_PASSWORD}
8190
composer require --dev phpunit/phpunit
8291
vendor/bin/phpunit --testsuite Unit
8392
- store_test_results:
84-
path: ~/project/vendor/bin/phpunit
93+
path: ~/Sites/vendor/bin/phpunit
8594

8695
workflows:
8796
magento-build-and-test:
@@ -95,4 +104,6 @@ workflows:
95104
branches:
96105
only:
97106
- MAGE-991
98-
- magento-test
107+
- magento-test:
108+
requires:
109+
- magento-build

0 commit comments

Comments
 (0)