Skip to content

ci: wordpress.yml を test.yml と release-drafter に分割#13

Merged
fumikito merged 1 commit into
masterfrom
chore/split-workflows
Jun 10, 2026
Merged

ci: wordpress.yml を test.yml と release-drafter に分割#13
fumikito merged 1 commit into
masterfrom
chore/split-workflows

Conversation

@fumikito

Copy link
Copy Markdown
Contributor

概要

単一の wordpress.yml を関心ごとに分割し、リリースフローを release-drafter 方式へ変更します。tarosky/taro-sitemap の workflows 構成を参考にしつつ、本リポジトリは composer ライブラリ(プラグイン zip 配布ではない)である点に合わせて調整しています。

変更内容

test.yml(PR 時)

  • phpcscomposer lint(PHPCS/WPCS) を独立ジョブ化
  • assetsnpm run lint(現状の gulp lint)
  • phpunit — PHP 7.4/8.0 × WP 5.9/latest の matrix。既存の bin/install-wp-tests.sh + MySQL service で実行
  • status-checkre-actors/alls-green で上記を集約。branch protection の必須チェックはこの1つを指定すれば済む

release-drafter.yml + .github/release-drafter.yml

  • PR ラベル(feature/fix/chore/major/minor/patch 等)から次バージョンとリリースノートを自動ドラフト

release ジョブを削除

  • zip 化 + GitHub Release 添付は削除。プラグイン zip ではなく composer 経由配布のため、リリースは git tag → Packagist で完結します。

参考との差分(icon 向け調整)

  • ブランチ: mainmaster
  • PHPUnit: wp-env ではなく既存の install-wp-tests.sh + MySQL 方式を踏襲
  • release.yml(zip 配布)は不採用(ライブラリのため)
  • 参考の phpcs.yml/php-short-open-tag.yml(tarosky 再利用 workflow)は使わず、既存の composer lint を利用(kuno1 リポジトリの自己完結性を維持)

検証

  • python -c yaml.safe_load で YAML 構文 OK
  • actionlint OK

注意 / 既知の制約

🤖 Generated with Claude Code

旧 wordpress.yml を関心ごとに分割:

- test.yml: phpcs / assets / phpunit(7.4・8.0 × WP 5.9・latest) を独立ジョブ化し、
  最後に re-actors/alls-green の status-check で集約 (branch protection 用)。
- release-drafter.yml + .github/release-drafter.yml: PR ラベルから次バージョンと
  リリースノートを自動ドラフト。
- 旧 release ジョブ(zip化・GitHub Release添付)は削除。本ライブラリはプラグイン zip
  ではなく composer 経由配布のため、リリースは git tag (Packagist) で完結する。

参考: tarosky/taro-sitemap の workflows 構成 (branch を master に、wp-env でなく
既存の install-wp-tests.sh 方式を踏襲)。npm のビルドツール近代化は #12 で対応予定の
ため assets は node 14 のまま据え置き。

Co-authored-by: Claude <noreply@anthropic.com>
@fumikito fumikito merged commit c899973 into master Jun 10, 2026
2 of 8 checks passed
@fumikito fumikito deleted the chore/split-workflows branch June 10, 2026 05:39
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