Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: npm run build

- name: Start wp-env
run: npm run wp-env start
run: npm run wp-env-test start

- name: Install Playwright browsers
run: npx playwright install --with-deps
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Stop wp-env
if: always()
run: npm run wp-env stop
run: npm run wp-env-test stop

merge-artifacts:
name: Merge Artifacts
Expand Down
11 changes: 2 additions & 9 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"$schema": "https://schemas.wp.org/trunk/wp-env.json",
"plugins": ["."],
"env": {
"tests": {
"mappings": {
"wp-content/plugins/secure-custom-fields": ".",
"wp-content/plugins/scf-test-plugins": "./tests/e2e/plugins"
}
}
}
"testsEnvironment": false,
"plugins": ["."]
}
14 changes: 14 additions & 0 deletions .wp-env.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://schemas.wp.org/trunk/wp-env.json",
"testsEnvironment": false,
"port": 8889,
"plugins": ["."],
"lifecycleScripts": {
"afterStart": "bash ./scripts/install-pcov.sh"
},
"mappings": {
"wp-content/plugins/secure-custom-fields": ".",
"wp-content/plugins/scf-test-plugins": "./tests/e2e/plugins",
"wp-content/mu-plugins/php-coverage-collector.php": "./tests/e2e/mu-plugins/php-coverage-collector.php"
}
}
Loading
Loading