File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 name : Integration (PHP ${{ matrix.php }}, WP ${{ matrix.wp }})
4949 runs-on : ubuntu-latest
5050 needs : unit
51+ services :
52+ mysql :
53+ image : mysql:8.0
54+ env :
55+ MYSQL_ROOT_PASSWORD : root
56+ MYSQL_ROOT_HOST : ' %'
57+ ports :
58+ - 3306:3306
59+ options : >-
60+ --health-cmd="mysqladmin ping -h localhost -proot"
61+ --health-interval=10s
62+ --health-timeout=5s
63+ --health-retries=5
5164 strategy :
5265 fail-fast : false
5366 matrix :
@@ -72,24 +85,12 @@ jobs:
7285 working-directory : plugins/basicrum
7386 run : composer install --no-interaction --prefer-dist
7487
75- - name : Install WP test library (best effort)
76- continue-on-error : true
88+ - name : Install WordPress test library
7789 run : |
7890 set -e
7991 sudo apt-get update
80- sudo apt-get install -y subversion
81-
82- WP_TESTS_DIR=/tmp/wordpress-tests-lib
83- WP_CORE_DIR=/tmp/wordpress
84- TESTS_SVN_BASE="https://develop.svn.wordpress.org/${{ matrix.wp }}/tests/phpunit"
85- CORE_SVN_BASE="https://develop.svn.wordpress.org/${{ matrix.wp }}/src"
86-
87- mkdir -p "$WP_TESTS_DIR" "$WP_CORE_DIR"
88-
89- svn export --force --quiet "$TESTS_SVN_BASE/includes" "$WP_TESTS_DIR/includes" || true
90- svn export --force --quiet "$TESTS_SVN_BASE/data" "$WP_TESTS_DIR/data" || true
91- svn export --force --quiet "$CORE_SVN_BASE/wp-includes" "$WP_CORE_DIR/wp-includes" || true
92- svn export --force --quiet "$CORE_SVN_BASE/wp-admin" "$WP_CORE_DIR/wp-admin" || true
92+ sudo apt-get install -y default-mysql-client subversion
93+ bash tools/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp }}
9394
9495 - name : Integration tests
9596 working-directory : plugins/basicrum
You can’t perform that action at this time.
0 commit comments