Skip to content

Commit 8b7465f

Browse files
committed
Pending changes
1 parent 9f57aa4 commit 8b7465f

1 file changed

Lines changed: 25 additions & 29 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ jobs:
8484
- name: Prepare Magento Playwright setup
8585
if: env.SKIP_JOB != 'true'
8686
run: |
87-
cd "$GITHUB_WORKSPACE"
88-
8987
cd /tmp/magento
9088
git config --global --add safe.directory /__w/Loki_Components/Loki_Components
9189
@@ -106,33 +104,31 @@ jobs:
106104
bin/magento loki-checkout:modules:dump
107105
108106
magerun2 config:store:set loki_functional_tests/general/token loki -n
109-
cp -R /tmp/magento $GITHUB_WORKSPACE/magento
110-
111-
#- name: Prepare Magento Playwright setup
112-
# if: env.SKIP_JOB != 'true'
113-
# run: |
114-
# docker run --rm --network host -v "$GITHUB_WORKSPACE:/work" -w /work \
115-
# docker://mcr.microsoft.com/playwright:v1.59.1-noble bash -lc "
116-
# cd /work/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
117-
# npm install
118-
# touch .env
119-
# echo TEST_URL=$MAGENTO_BASE_URL >> .env
120-
# echo TEST_TOKEN=loki >> .env
121-
# MAGENTO_ROOT=/work/magento npx playwright test --project=$MAGENTO_MODULE
122-
# "
107+
cp -R /tmp/magento $GITHUB_WORKSPACE/
123108
124109
- name: Prepare Magento Playwright setup
125110
if: env.SKIP_JOB != 'true'
126-
uses: docker://mcr.microsoft.com/playwright:v1.59.1-noble
127-
with:
128-
args: >
129-
bash -lc "
130-
cd $GITHUB_WORKSPACE/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
131-
cat $GITHUB_WORKSPACE/magento/app/etc/loki-checkout.json
132-
npm install
133-
#npx playwright install
134-
touch .env
135-
echo TEST_URL=http://localhost:8888 >> .env
136-
echo TEST_TOKEN=loki >> .env
137-
MAGENTO_ROOT=$GITHUB_WORKSPACE/magento npx playwright test --project=$MAGENTO_MODULE
138-
"
111+
run: |
112+
docker run --rm --network host --ipc=host -v "$GITHUB_WORKSPACE:/work" -w /work \
113+
mcr.microsoft.com/playwright:v1.59.1-noble bash -lc '
114+
ls -al /work
115+
cd /work/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
116+
npm install
117+
printf "TEST_URL=http://127.0.0.1:8888\nTEST_TOKEN=loki\n" > .env
118+
MAGENTO_ROOT=/work/magento npx playwright test --project=$MAGENTO_MODULE
119+
'
120+
121+
#- name: Prepare Magento Playwright setup
122+
# if: env.SKIP_JOB != 'true'
123+
# uses: docker://mcr.microsoft.com/playwright:v1.59.1-noble
124+
# with:
125+
# args: >
126+
# bash -lc "
127+
# cd $GITHUB_WORKSPACE/magento/vendor/loki-checkout/magento2-functional-tests/Test/Playwright/
128+
# cat $GITHUB_WORKSPACE/magento/app/etc/loki-checkout.json
129+
# npm install
130+
# #npx playwright install
131+
# echo TEST_URL=http://localhost:8888 >> .env
132+
# echo TEST_TOKEN=loki >> .env
133+
# MAGENTO_ROOT=$GITHUB_WORKSPACE/magento npx playwright test --project=$MAGENTO_MODULE
134+
# "

0 commit comments

Comments
 (0)