@@ -16,39 +16,35 @@ jobs:
1616 DB_PASSWORD : root
1717 DB_HOST : localhost
1818 steps :
19- - uses : actions/checkout@v3
19+ - uses : actions/checkout@v4
2020 - name : Install NPM & Composer dependencies
2121 run : |
2222 composer install
2323 npm install
24- - name : Setup MySQL
24+ - name : Start MySQL
2525 run : |
2626 sudo /etc/init.d/mysql start
27- mysql -e 'CREATE DATABASE IF NOT EXISTS wordpress_test;' -uroot -proot
28- mysql -e 'SHOW DATABASES;' -uroot -proot
29- - name : Install WP Unit tests
30- run : |
31- php -v
3227 mysqladmin -V
33- bash .bin/install-wp-tests.sh wordpress_test root root localhost latest true
28+ - name : Setup WP-CLI
29+ uses : godaddy-wordpress/setup-wp-cli@1
3430 - name : Run linter
3531 run : composer lint
3632 - name : Run tests
37- run : composer test
33+ run : bash ./bin/phpunit- test.sh
3834 wporg-code-analysis :
3935 runs-on : ubuntu-latest
4036 name : WP.org Code Analysis
4137 steps :
42- - uses : actions/checkout@v3
38+ - uses : actions/checkout@v4
4339 - name : WP.org Code Analysis
44- uses : pantheon-systems/action-wporg-validator@1.0.0
40+ uses : pantheon-systems/action-wporg-validator@v1.1.5
4541 with :
4642 type : plugin
4743 phpcompatibility :
4844 runs-on : ubuntu-latest
4945 name : PHP Compatibility
5046 steps :
51- - uses : actions/checkout@v3
47+ - uses : actions/checkout@v4
5248 - run : echo "Note these tests may be incomplete for newer PHP version and miss some deprecations"
5349 shell : bash
5450 - name : PHPCompatibility
6157 name : Validate README Spacing
6258 runs-on : ubuntu-latest
6359 steps :
64- - uses : actions/checkout@v3
65- - uses : pantheon-systems/validate-readme-spacing@v1
60+ - uses : actions/checkout@v4
61+ - uses : pantheon-systems/validate-readme-spacing@v1.0.5
6662 with :
67- filepath : ' README.MD'
63+ filepath : ' README.MD'
0 commit comments