Skip to content

Commit 6062ccb

Browse files
committed
test: Attempt fixing Playwright test
1 parent a24c0da commit 6062ccb

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Playwright test
2-
3-
on:
4-
schedule:
5-
- cron: '0 2 * * *'
6-
workflow_dispatch:
2+
on: ['push', 'pull_request']
73

84
jobs:
95
playwright:
@@ -89,12 +85,13 @@ jobs:
8985
if: env.SKIP_JOB != 'true'
9086
run: |
9187
cd "$GITHUB_WORKSPACE"
92-
cd /tmp/magento
88+
cp -R /tmp/magento $GITHUB_WORKSPACE/magento
89+
cd $GITHUB_WORKSPACE/magento
9390
9491
test -f "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-additional.sh"
9592
test -f "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh" && source "$GITHUB_WORKSPACE/.github/workflows/composer-${MAGENTO_VERSION}.sh"
9693
97-
git config --global --add safe.directory /__w
94+
git config --global --add safe.directory /__w/${MAGENTO_MODULE}/${MAGENTO_MODULE}
9895
composer config repositories.local-source path "$GITHUB_WORKSPACE"
9996
composer require --prefer-source -- "${COMPOSER_NAME}:@dev" loki-checkout/magento2-core-cli:@dev loki-checkout/magento2-functional-tests:@dev yireo/magento2-enable-module-sequence
10097
@@ -109,7 +106,6 @@ jobs:
109106
cat app/etc/loki-checkout.json
110107
111108
magerun2 config:store:set loki_functional_tests/general/token loki -n
112-
cp -R /tmp/magento $GITHUB_WORKSPACE/magento
113109
114110
- name: Prepare Magento Playwright setup
115111
if: env.SKIP_JOB != 'true'

0 commit comments

Comments
 (0)