Skip to content

Commit

Permalink
Bump versions to PHP 8.3, WP 6.5, tested up to 6.6 (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman authored Jul 23, 2024
1 parent 1b9b6c5 commit fb70722
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 209 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,14 @@ jobs:
- name: Setup wp-env
uses: godaddy-wordpress/setup-wp-env@v1
with:
core: 'WordPress/WordPress#6.4'
core: 'WordPress/WordPress#6.5'
phpVersion: ${{ matrix.phpVersion }}
plugins: '["https://downloads.wordpress.org/plugin/coblocks.zip","https://downloads.wordpress.org/plugin/woocommerce.zip"]'
themes: '["."]'

- name: Prepare tests
run: |
cd $(wp-env install-path)
docker-compose run --rm -u $(id -u) -e HOME=/tmp tests-cli cp wp-content/themes/go/.dev/tests/php/assets/es_ES.mo wp-content/themes/go/languages/es_ES.mo
- name: Run tests
run: |
wp-env run phpunit "composer run test --working-dir=html/wp-content/themes/go/"
wp-env run tests-wordpress /var/www/html/wp-content/themes/go/vendor/bin/phpunit -c /var/www/html/wp-content/themes/go/phpunit.xml --verbose
js:
name: JS Unit
Expand Down Expand Up @@ -79,7 +74,7 @@ jobs:
- name: Setup wp-env
uses: godaddy-wordpress/setup-wp-env@v1
with:
core: 'WordPress/WordPress#6.4'
core: 'WordPress/WordPress#6.5'
phpVersion: '8.3'
plugins: '["https://downloads.wordpress.org/plugin/coblocks.zip","https://downloads.wordpress.org/plugin/woocommerce.zip"]'
themes: '["."]'
Expand All @@ -102,7 +97,7 @@ jobs:
- name: Prepare tests
run: |
wp-env run cli "wp db import wp-content/themes/go/.dev/tests/a11y-test-db.sql"
wp-env run cli wp db import wp-content/themes/go/.dev/tests/a11y-test-db.sql
- name: Run tests
run: |
Expand All @@ -122,7 +117,7 @@ jobs:
- name: Setup wp-env
uses: godaddy-wordpress/setup-wp-env@v1
with:
core: 'WordPress/WordPress#6.4'
core: 'WordPress/WordPress#6.5'
phpVersion: '8.3'
plugins: '["https://downloads.wordpress.org/plugin/coblocks.zip","https://downloads.wordpress.org/plugin/woocommerce.zip"]'
themes: '["."]'
Expand All @@ -145,8 +140,8 @@ jobs:
- name: Prepare tests
run: |
wp-env run cli "wp theme activate go"
wp-env run cli "wp option update permalink_structure '/%postname%'"
wp-env run cli wp theme activate go
wp-env run cli wp option update permalink_structure '/%postname%'
- name: Run tests
run: yarn test:e2e:customizer -- --record
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<img src="https://github.com/godaddy-wordpress/go/actions/workflows/run-tests.yml/badge.svg" alt="Github Test Workflow">
</a>
<a href="https://wordpress.org/" target="_blank">
<img src="https://img.shields.io/static/v1?label=&message=5.0+-+6.4&color=blue&style=flat-square&logo=wordpress&logoColor=white" alt="WordPress Versions">
<img src="https://img.shields.io/static/v1?label=&message=5.0+-+6.6&color=blue&style=flat-square&logo=wordpress&logoColor=white" alt="WordPress Versions">
</a>
<a href="https://www.php.net/" target="_blank">
<img src="https://img.shields.io/static/v1?label=&message=7.4+-+8.2&color=777bb4&style=flat-square&logo=php&logoColor=white" alt="PHP Versions">
<img src="https://img.shields.io/static/v1?label=&message=7.4+-+8.3&color=777bb4&style=flat-square&logo=php&logoColor=white" alt="PHP Versions">
</a>
</p>
<p align="center">
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
= 1.8.11 / 2024-07-16 =
### Updates
- Bump the tested up to version to 6.6. [#914](https://github.com/godaddy-wordpress/go/pull/914)
- Bump the supported PHP version up to version 8.3. [#914](https://github.com/godaddy-wordpress/go/pull/914)

= 1.8.10 / 2024-04-02 =
### Updates
- Bump the tested up to version to 6.5. [#909](https://github.com/godaddy-wordpress/go/pull/909)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"wp-coding-standards/wpcs": "^2.1",
"phpunit/phpunit": "^9.5.21",
"wp-phpunit/wp-phpunit": "^6.0.1",
"yoast/phpunit-polyfills": "^1.0.1"
"yoast/phpunit-polyfills": "^1.1.0"
},
"scripts": {
"lint": "@php ./vendor/bin/phpcs --standard=phpcs.xml --extensions=php --colors -s -p -v ./",
Expand Down
Loading

0 comments on commit fb70722

Please sign in to comment.