From 27df7f0cc5e1b5fbb2685e3dabde02a7859eac11 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 27 May 2026 23:34:37 -0700 Subject: [PATCH] Revert "Fix broken Plugin Check workflow on ubuntu-24.04 runner image" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 56c61e65a220f155201f8a9ad1294bb8f51ecc9f. That commit was a temporary workaround for a wp-env URL-source download bug exposed by Node.js 24.16 in the ubuntu-24.04 runner image. It inlined the steps from wordpress/plugin-check-action so we could omit the URL plugin entry from .wp-env.json (the trigger) and install plugin-check via wp-cli post-boot, plus pinned @wordpress/env to 11.7.0. This restores the simpler `uses: wordpress/plugin-check-action@…` setup. Should only be merged after the upstream tickets referenced in the PR description are resolved. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/plugin-check.yml | 98 ++---------------------------- 1 file changed, 4 insertions(+), 94 deletions(-) diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index 5beed84a4e..b82e5ad056 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -156,99 +156,9 @@ jobs: name: built-plugins path: build - # The following steps inline wordpress/plugin-check-action to add - # "testsEnvironment": false to the auto-generated .wp-env.json. - # The upstream action's default config triggers a bug in @wordpress/env's - # legacy dual-environment startup path on the ubuntu-24.04 runner image - # >=20260525.161 (Node.js 24.16.0), where wp-env start silently exits 0 - # without booting Docker. See https://github.com/WordPress/plugin-check-action/issues/579 - # Revert to `uses: wordpress/plugin-check-action@...` once the upstream - # issue is resolved. - - name: Set up Node - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 - with: - node-version: '24' - - - name: Setup wp-env - env: - BUILD_DIR: ./build/${{ matrix.plugin }} - run: | - PLUGIN_DIR=$(realpath "$BUILD_DIR") - PLUGIN_SLUG=$(basename "$PLUGIN_DIR") - echo "PLUGIN_DIR=$PLUGIN_DIR" >> "$GITHUB_ENV" - echo "PLUGIN_SLUG=$PLUGIN_SLUG" >> "$GITHUB_ENV" - - # Note: plugin-check is intentionally NOT listed here — the URL - # download path appears to be where wp-env silently dies on the new - # runner image. Installed via wp-cli below instead. - cat > .wp-env.json < "$RESULTS" - cat "$RESULTS" - echo "::endgroup::" - - # Fail if Plugin Check reported any findings. - if [ -s "$RESULTS" ] && [ "$(jq 'length' "$RESULTS")" -gt 0 ]; then - echo "::error::Plugin Check reported issues for $PLUGIN_SLUG" - exit 1 - fi - - - name: Upload plugin-check results - if: always() - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: wordpress/plugin-check-action@18573eb38f13543484a1f095672dae3849a4fbb0 # main with: - name: plugin-check-results-${{ matrix.plugin }} - path: ${{ runner.temp }}/plugin-check-results.json - if-no-files-found: ignore + build-dir: ./build/${{ matrix.plugin }} + slug: ${{ matrix.plugin }} + ignore-codes: 'readme_reserved_contributors,WordPress.WP.I18n.TextDomainMismatch'