Skip to content

Commit 03a2c7e

Browse files
committed
update .wp-env.json and name
1 parent 1d94db4 commit 03a2c7e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- php_version: 8.2
3030
wp_version: null
3131

32+
name: Playwright tests on PHP ${{ matrix.php_version }} and WP ${{ matrix.wp_version || 'latest' }}
3233
steps:
3334
- uses: actions/checkout@v4
3435
- uses: actions/setup-node@v4
@@ -39,22 +40,22 @@ jobs:
3940
- name: Set WP Version and create .wp-env.json
4041
run: |
4142
WP_VERSION="${{ matrix.wp_version }}"
42-
core="Wordpress/Wordpress#${{ matrix.wp_version }}"
43+
core='"Wordpress/Wordpress#'${{ matrix.wp_version }}'"'
4344
4445
if [[ -z "$WP_VERSION" || "$WP_VERSION" == "null" ]]; then
45-
WP_VERSION="Latest"
46+
WP_VERSION="latest"
4647
core=null
4748
fi
4849
4950
echo "WP_VERSION=$WP_VERSION" >> $GITHUB_ENV
5051
5152
echo '{
52-
"core": $core,
53-
"phpVersion": "${{ matrix.php_version }}"
54-
"plugins": [ "." ],
55-
"config": {
56-
"SCRIPT_DEBUG": false
57-
}
53+
"core": '$core',
54+
"phpVersion": "7.5",
55+
"plugins": [ "." ],
56+
"config": {
57+
"SCRIPT_DEBUG": false
58+
}
5859
}' > .wp-env.json
5960
6061
cat .wp-env.json

0 commit comments

Comments
 (0)