Skip to content

Commit d53db10

Browse files
committed
test: Move Playwright to proper folder
1 parent d34b13a commit d53db10

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,10 @@ jobs:
9191
test -f "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh"
9292
test -f "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh"
9393
94-
git config --global --add safe.directory /__w/${MAGENTO_MODULE}/${MAGENTO_MODULE}
95-
#composer config repositories.local-source path "$GITHUB_WORKSPACE"
9694
composer config repositories.local-source "{\"type\": \"path\", \"url\": \"$GITHUB_WORKSPACE\", \"options\": {\"symlink\": false}}"
97-
9895
composer require --prefer-source -- "${COMPOSER_NAME}:@dev" loki-checkout/magento2-core-cli:@dev loki-checkout/magento2-functional-tests:@dev yireo/magento2-enable-module-sequence
9996
10097
$GITHUB_WORKSPACE/.github/workflows/magento-install.sh
101-
cp -R /tmp/magento $GITHUB_WORKSPACE/magento
102-
cd $GITHUB_WORKSPACE/magento
10398
10499
bin/magento deploy:mode:set developer
105100
bin/magento module:enable Yireo_EnableModuleSequence
@@ -108,9 +103,9 @@ jobs:
108103
bin/magento module:sequence "${MAGENTO_MODULE}"
109104
bin/magento setup:upgrade
110105
bin/magento loki-checkout:modules:dump
111-
cat app/etc/loki-checkout.json
112106
113107
magerun2 config:store:set loki_functional_tests/general/token loki -n
108+
cp -R /tmp/magento $GITHUB_WORKSPACE/magento
114109
115110
- name: Prepare Magento Playwright setup
116111
if: env.SKIP_JOB != 'true'
@@ -119,10 +114,11 @@ jobs:
119114
args: >
120115
bash -lc "
121116
cd $GITHUB_WORKSPACE/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
117+
cat $GITHUB_WORKSPACE/magento/app/etc/loki-checkout.json
122118
npm install
123119
npx playwright install
124120
touch .env
125121
echo TEST_URL=$MAGENTO_BASE_URL >> .env
126122
echo TEST_TOKEN=loki >> .env
127-
npx playwright test --project=$MAGENTO_MODULE
123+
MAGENTO_ROOT=$GITHUB_WORKSPACE/magento npx playwright test --project=$MAGENTO_MODULE
128124
"

0 commit comments

Comments
 (0)