diff --git a/.github/workflows/build-plugin-zip-tests.yml b/.github/workflows/build-plugin-zip-tests.yml index cb42114e2..ecc7c9149 100644 --- a/.github/workflows/build-plugin-zip-tests.yml +++ b/.github/workflows/build-plugin-zip-tests.yml @@ -27,11 +27,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - - name: Setup Node.js and install dependencies uses: ./.github/setup-node @@ -57,7 +52,7 @@ jobs: mkdir packages/blockera mkdir packages/blockera/tests touch .wp-env.json - echo '{"plugins": ["."], "config": {"BLOCKERA_TELEMETRY_OPT_IN_OFF": true}}' >> .wp-env.json + echo '{"plugins": ["."], "config": {"BLOCKERA_TELEMETRY_OPT_IN_OFF": true}, "phpVersion": "${{ matrix.php }}"}' >> .wp-env.json cat .wp-env.json touch cypress.env.json echo '{"isLogin": false,"wpUsername": "admin","wpPassword": "password","testURL": "http://localhost:8888","e2e": {"excludeSpecPattern": [],"specPattern": ["packages/**/*.build.e2e.cy.js"]}}' >> cypress.env.json diff --git a/.github/workflows/php-unit-tests.yml b/.github/workflows/php-unit-tests.yml index 38c6d79bf..1667097b3 100644 --- a/.github/workflows/php-unit-tests.yml +++ b/.github/workflows/php-unit-tests.yml @@ -97,7 +97,7 @@ jobs: - name: Create requires environment files run: | touch .wp-env.json - echo '{"plugins": ["."]}' >> .wp-env.json + echo '{"plugins": ["."],"phpVersion": "${{ matrix.php }}"}' >> .wp-env.json cat .wp-env.json touch .env echo APP_MODE=production >> .env