From d0cfe8f3f6a45f4eb6ccf3f9530321ea3178504c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 8 Nov 2023 20:41:15 +0100 Subject: [PATCH] test --- .github/workflows/php-test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-test.yml b/.github/workflows/php-test.yml index f676280c2..320327a74 100644 --- a/.github/workflows/php-test.yml +++ b/.github/workflows/php-test.yml @@ -72,7 +72,11 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - coverage: ${{ matrix.coverage && 'xdebug' || 'none' }} + + - name: Install PHP dependencies + uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 + with: + composer-options: '--prefer-dist --no-progress --no-interaction' - name: Setup Node.js (.nvmrc) uses: actions/setup-node@v3 @@ -83,8 +87,13 @@ jobs: - name: npm install run: npm ci - - name: Install WordPress - run: npm run wp-env start + - name: Start WordPress + run: | + if [[ ${{ matrix.coverage == true ]]; then + npm run wp-env start -- --xdebug + else + npm run wp-env start + fi - name: Run tests if: ${{ ! matrix.coverage }}