Skip to content

Introduce release-drafter + modernize CI (PHP 8.1, PHPUnit 9.6, svn, node 20) - #78

Merged
fumikito merged 4 commits into
masterfrom
feature/release-drafter
Jun 1, 2026
Merged

Introduce release-drafter + modernize CI (PHP 8.1, PHPUnit 9.6, svn, node 20)#78
fumikito merged 4 commits into
masterfrom
feature/release-drafter

Conversation

@fumikito

@fumikito fumikito commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

概要

taro-sitemap に倣って release-drafter を導入。作業中に表面化した既存の CI 破綻も併せて修正した。

変更点

release-drafter(本題)

  • .github/release-drafter.yml 追加(taro-sitemap と同設定)
  • .github/workflows/release-drafter.yml 追加(master push / PR でドラフト更新)
  • リリースを wordpress.yml 内 release ジョブ(tag push)から独立 release.ymlrelease: published トリガー)へ分離。php-scoper + clean.sh は維持。bin/build.sh にタグを渡しバージョン空バグも修正
  • wordpress.yml から release ジョブと push の tags トリガーを撤去

依存デッドロック解消

  • google/auth + firebase/php-jwtCVE-2025-45769(php-jwt <7.0.0)でブロックされ composer 解決不能だった
  • PHP 8.1 必須化google/auth v1.50.2 + firebase/php-jwt v7.0.5(勧告対象外)に解決
  • composer.jsonrequire.php / config.platform.php を 8.1 に、プラグインヘッダに Requires PHP: 8.1 を追加

CI 老朽化の修正

  • phpunit/phpunit^9.6 にピン(無指定だと PHPUnit 10/11 が入りスキーマ・テスト検出が非互換)
  • ubuntu-latest から削除された subversion を apt 導入(install-wp-tests.sh の svn co 用)
  • CI マトリクスを PHP 8.1/8.2/8.3 × WP latest/6.5 に更新
  • assets ジョブの Node を 14 → 20 に

残課題

🤖 Generated with Claude Code

fumikito and others added 4 commits June 1, 2026 17:13
…lished trigger

Co-authored-by: Claude <noreply@anthropic.com>
…adlock

- config.platform.php and require.php: 7.4 -> 8.1
- CI matrix: PHP 8.1/8.2/8.3, WP latest/6.5
- release.yml & lint: php-version 8.1
- Add 'Requires PHP: 8.1' plugin header

Resolves to google/auth v1.50.2 + firebase/php-jwt v7.0.5 (advisory-free).
PHP 7.4 kept firebase/php-jwt at v6 which is blocked by CVE-2025-45769.

Co-authored-by: Claude <noreply@anthropic.com>
…o 20

- ubuntu-latest no longer ships svn, breaking install-wp-tests.sh -> apt install subversion
- assets job node 14 -> 20 (native module build failed on node 14)

Co-authored-by: Claude <noreply@anthropic.com>
Unbounded '>=5.7' pulled PHPUnit 10/11 whose new config schema and test
discovery break the existing tests (class/file mismatch, removed convert* attrs).
9.6.x matches the WordPress test ecosystem and supports PHP 8.1-8.3.

Co-authored-by: Claude <noreply@anthropic.com>
@fumikito fumikito changed the title Introduce release-drafter Introduce release-drafter + modernize CI (PHP 8.1, PHPUnit 9.6, svn, node 20) Jun 1, 2026
@fumikito
fumikito merged commit c83033c into master Jun 1, 2026
13 of 17 checks passed
@fumikito
fumikito deleted the feature/release-drafter branch June 1, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant