Skip to content

Commit 6e16f40

Browse files
fix: streamline CircleCI configuration by removing workspace attachment and adjusting test job paths
1 parent 441e026 commit 6e16f40

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.circleci/config.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
magento-version:
2020
type: string
2121
steps:
22-
- attach_workspace:
23-
at: ~/Sites
2422
- checkout
2523
- php/install_php:
2624
version: << parameters.php-version >>
@@ -71,25 +69,22 @@ jobs:
7169
bin/composer require algolia/algoliasearch-client-php "^4.0" -W
7270
bin/magento setup:di:compile
7371
bin/magento module:status Algolia_AlgoliaSearch
74-
- persist_to_workspace:
75-
root: ~/Sites
76-
paths:
77-
- ~/Sites
7872
7973
magento-test:
80-
executor:
81-
name: magento-executor
82-
working_directory: ~/Sites
74+
docker:
75+
- image: cimg/php:8.2
76+
working_directory: ~/project
8377
steps:
8478
- checkout
8579
- run:
8680
name: Run PHP Unit Tests
8781
command: |
8882
composer config --global http-basic.repo.magento.com ${MAGENTO_AUTH_USERNAME} ${MAGENTO_AUTH_PASSWORD}
83+
composer install --no-interaction
8984
composer require --dev phpunit/phpunit
9085
vendor/bin/phpunit --testsuite Unit
9186
- store_test_results:
92-
path: ~/Sites/vendor/bin/phpunit
87+
path: ~/project/vendor/bin/phpunit
9388

9489
workflows:
9590
magento-build-and-test:
@@ -103,6 +98,4 @@ workflows:
10398
branches:
10499
only:
105100
- MAGE-991
106-
- magento-test:
107-
requires:
108-
- magento-build
101+
- magento-test

0 commit comments

Comments
 (0)