diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index efc5c23..2d42b31 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -67,9 +67,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install Subversion - run: sudo apt-get install subversion - - name: Install PHP uses: shivammathur/setup-php@v2 with: @@ -77,9 +74,6 @@ jobs: extensions: mysqli, mysql coverage: none - - name: Set up WordPress - run: phpunit/install.sh wordpress_test root '' 127.0.0.1:3306 ${{ matrix.wp }} - # On WP 5.2, PHPUnit 5.x, 6.x and 7.x are supported. # On PHP >= 8.0, PHPUnit 7.5+ is needed, no matter what. - name: Determine supported PHPUnit version @@ -109,21 +103,23 @@ jobs: with: composer-options: --ignore-platform-reqs - - name: 'Run Composer Update' - run: | - composer update --ignore-platform-reqs + - name: Install Subversion + run: sudo apt-get install subversion + + - name: Set up WordPress + run: phpunit/install.sh wordpress_test root '' 127.0.0.1:3306 ${{ matrix.wp }} - name: Tool versions run: | php --version composer --version - phpunit --version - which phpunit + ./vendor/bin/phpunit --version + which ./vendor/bin/phpunit - name: Run the unit tests - single site - run: vendor/bin/phpunit + run: ./vendor/bin/phpunit - name: Run the unit tests - multisite - run: vendor/bin/phpunit env: WP_MULTISITE: 1 + run: ./vendor/bin/phpunit