Skip to content

ci: pin php-cs-fixer runner to ubuntu-24.04#1691

Open
oreno4649 wants to merge 1 commit into
exceedone:masterfrom
oreno4649:ci/unify-ubuntu-24.04
Open

ci: pin php-cs-fixer runner to ubuntu-24.04#1691
oreno4649 wants to merge 1 commit into
exceedone:masterfrom
oreno4649:ci/unify-ubuntu-24.04

Conversation

@oreno4649
Copy link
Copy Markdown
Collaborator

Summary

.github/workflows/php-cs-fixer.yml だけ ubuntu-latest を使っていたので、他 3 ワークフロー (phpstan.yml / unittest.yml / check-lang.yml) と同じ ubuntu-24.04 に揃えました。

ubuntu-latest は GitHub 側で参照先が切り替わる (現在は 22.04、将来的に 24.04 → 26.04 など) ため、ジョブ間で実行環境がずれる/突然挙動が変わるリスクがあります。固定値で揃えることで CI の再現性を担保します。

Before / After

workflow Before After
php-cs-fixer.yml ubuntu-latest ubuntu-24.04
phpstan.yml ubuntu-24.04 (no change) ubuntu-24.04
unittest.yml ubuntu-24.04 (no change) ubuntu-24.04
check-lang.yml ubuntu-24.04 (no change) ubuntu-24.04

Test plan

  • CI 設定の 1 行変更のみ。コードへの影響なし
  • PR 上で php-cs-fixer ジョブが ubuntu-24.04 上で pass することを確認

Other workflows (phpstan, unittest, check-lang) already pin ubuntu-24.04. Aligning php-cs-fixer.yml prevents the runner from drifting when GitHub bumps the ubuntu-latest alias.
@oreno4649 oreno4649 self-assigned this May 12, 2026
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