Skip to content

Commit ceb6639

Browse files
Add integration tests
1 parent 720b07f commit ceb6639

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

.github/workflows/integration-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ jobs:
1414
timeout-minutes: 10
1515
strategy:
1616
matrix:
17-
wp-version: [67]
17+
include:
18+
- { wp: 34, php: 5.3 }
19+
- { wp: 48, php: 5.6 }
20+
- { wp: 48, php: 7.0 }
21+
- { wp: 60, php: 7.4 }
22+
- { wp: 63, php: 7.4 }
23+
- { wp: 67, php: 7.4 }
24+
- { wp: 67, php: 8.0 }
25+
- { wp: 67, php: 8.2 }
1826
steps:
1927
- name: Checkout code
2028
uses: actions/checkout@v4
@@ -52,7 +60,7 @@ jobs:
5260
if: steps.playwright-cache.outputs.cache-hit != 'true'
5361

5462
- name: Run script
55-
run: ./bin/integration-tests ${{ matrix.wp-version }}
63+
run: ./bin/integration-tests ${{ matrix.wp }} ${{ matrix.php}}
5664

5765
- uses: actions/upload-artifact@v4
5866
if: ${{ !cancelled() }}

bin/integration-tests

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ if [ -z "${WORDPRESS_VERSION}" ]; then
1414
exit 1
1515
fi
1616

17-
version_input="$1"
17+
wp_version_input="$1"
18+
php_version_input="$2"
1819

19-
## WordPress version ex. "6.7"
20-
export WORDPRESS_VERSION_FULL="${version_input:0:1}.${version_input:1}"
20+
## PHP Version ex "80"
21+
export PHP_VERSION="${php_version_input}"
22+
23+
## PHP Version ex "80"
24+
export PHP_VERSION_FULL="${PHP_VERSION:0:1}.${PHP_VERSION:1}"
2125

2226
## WordPress version ex "67"
23-
export WORDPRESS_VERSION="${version_input}"
27+
export WORDPRESS_VERSION="${wp_version_input}"
28+
29+
## WordPress version ex. "6.7"
30+
export WORDPRESS_VERSION_FULL="${WORDPRESS_VERSION:0:1}.${WORDPRESS_VERSION:1}"
31+
2432
fi
2533

2634
export MYSQL_PWD=root
@@ -29,8 +37,10 @@ export WORDPRESS_PORT=80${WORDPRESS_VERSION}
2937
export WORDPRESS_URL=http://wordpress
3038
export WP_ENV_TESTS_PORT=80${WORDPRESS_VERSION}
3139
export WP_ENV_CORE=WordPress/Wordpress#${WORDPRESS_VERSION_FULL}
40+
export WP_ENV_PHP_VERSION=${PHP_VERSION_FULL}
3241
export MOCK_PORT=8100
3342

43+
3444
function wait_for_service_port {
3545
while ! curl -s localhost:$1 > /dev/null; do
3646
sleep 0.25

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Contributors: TinyPNG
33
Donate link: https://tinypng.com/
44
Tags: compress images, compression, image size, page speed, performance
5-
Requires at least: 4.7
5+
Requires at least: 3.4
66
Tested up to: 6.7
77
Stable tag: 3.4.6
88
License: GPLv2 or later

0 commit comments

Comments
 (0)