ci: wordpress.yml を test.yml と release-drafter に分割#13
Merged
Conversation
旧 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
単一の
wordpress.ymlを関心ごとに分割し、リリースフローを release-drafter 方式へ変更します。tarosky/taro-sitemapの workflows 構成を参考にしつつ、本リポジトリは composer ライブラリ(プラグイン zip 配布ではない)である点に合わせて調整しています。変更内容
test.yml(PR 時)composer lint(PHPCS/WPCS) を独立ジョブ化npm run lint(現状の gulp lint)7.4/8.0× WP5.9/latestの matrix。既存のbin/install-wp-tests.sh+ MySQL service で実行re-actors/alls-greenで上記を集約。branch protection の必須チェックはこの1つを指定すれば済むrelease-drafter.yml+.github/release-drafter.ymlfeature/fix/chore/major/minor/patch等)から次バージョンとリリースノートを自動ドラフト旧
releaseジョブを削除参考との差分(icon 向け調整)
main→masterwp-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 構文 OKactionlintOK注意 / 既知の制約
gulp-sass(node-sass) が新 Node でビルドできないため、ビルドツール近代化(npm devDependencies / ビルドパイプラインの近代化(破壊的移行) #12)が入るまでは 14 を維持します(TODO コメント記載)。npm devDependencies / ビルドパイプラインの近代化(破壊的移行) #12 完了後に node 20 +npm run buildへ更新予定。WordPress ... UnitTestからStatus Checkに張り替える必要があります(リポジトリ設定)。🤖 Generated with Claude Code