Skip to content

Commit 9432466

Browse files
committed
add test mapping
1 parent ad6a9b9 commit 9432466

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,7 @@ jobs:
4848
run: yarn build
4949

5050
- name: Start wp-env
51-
run: npx wp-env start
52-
53-
- name: Log running Docker containers
54-
run: docker ps -a
55-
56-
- name: Docker container debug information
57-
run: |
58-
npx wp-env run tests-mysql mysql -- --version
59-
npx wp-env run tests-wordpress php -- --version
60-
npx wp-env run tests-wordpress php -m
61-
npx wp-env run tests-wordpress php -i
51+
run: yarn wp-env
6252

6353
- name: WordPress unit test
6454
run: yarn php:unit

.wp-env.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"core": null,
33
"plugins": ["."],
4-
"phpVersion": "8.3"
4+
"phpVersion": "8.3",
5+
"env": {
6+
"tests": {
7+
"mappings": {
8+
"wp-content/plugins/feature-flags": "."
9+
}
10+
}
11+
}
512
}

0 commit comments

Comments
 (0)