Skip to content

GitHub Actionsワークフローを最新バージョンに更新#6608

Open
dotani1111 wants to merge 2 commits intoEC-CUBE:maintenance/4.1from
dotani1111:fix/maintenance-4.1-github-actions
Open

GitHub Actionsワークフローを最新バージョンに更新#6608
dotani1111 wants to merge 2 commits intoEC-CUBE:maintenance/4.1from
dotani1111:fix/maintenance-4.1-github-actions

Conversation

@dotani1111
Copy link
Contributor

概要(Overview・Refs Issue)

GitHub Actionsのワークフローファイルを最新バージョンに更新しました。
4.3ブランチと同様の更新を行い、最新のGitHub Actions機能とセキュリティ改善に対応しています。

主な変更内容:

  • GitHub Actionsのアクションを最新バージョンに更新(actions/cache@v1→v4、actions/upload-artifact@v2→v6、actions/checkout@v2→v6、actions/download-artifact@v2→v7、codecov/codecov-action@v1→v5、svenstaro/upload-release-action@v1-release→2.11.3)
  • chromedriverコマンドに--port=9515オプションを追加(11箇所)

更新したファイル(12ファイル):

  • .github/workflows/coverage.yml
  • .github/workflows/deny-test.yml
  • .github/workflows/deploy.yml
  • .github/workflows/dockerbuild.yml
  • .github/workflows/e2e-bc-test.yml
  • .github/workflows/e2e-test.yml
  • .github/workflows/penetration-test.yml
  • .github/workflows/phpstan.yml
  • .github/workflows/plugin-test.yml
  • .github/workflows/unit-test.yml
  • .github/workflows/vaddy-1.yml
  • .github/workflows/vaddy-2.yml

方針(Policy)

  • 4.3ブランチのワークフローファイルを参考に、同様の更新を適用
  • 既存のワークフロー動作を維持しつつ、アクションバージョンのみを更新
  • セキュリティ改善と互換性の向上を優先

実装に関する補足(Appendix)

更新したアクションの詳細

  • actions/cache: v1 → v4 (14箇所)
  • actions/upload-artifact: v2 → v6 (29箇所)
  • actions/checkout: v2 → v6 (4箇所)
  • actions/download-artifact: v2 → v7 (1箇所)
  • codecov/codecov-action: v1 → v5 (2箇所)
  • svenstaro/upload-release-action: v1-release → 2.11.3 (8箇所)

chromedriverのポート指定

すべてのchromedriverコマンドに --port=9515 オプションを追加しました。これにより、ポートの明示的な指定により接続の安定性が向上します。

テスト(Test)

GitHub Actionsのワークフローファイルの更新のみで、アプリケーションコードの変更はありません。

相談(Discussion)

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

- actions/cacheをv1からv4に更新
- actions/upload-artifactをv2からv6に更新
- actions/checkoutをv2からv6に更新
- actions/download-artifactをv2からv7に更新
- codecov/codecov-actionをv1からv5に更新
- svenstaro/upload-release-actionをv1-releaseから2.11.3に更新
- chromedriverコマンドに--port=9515オプションを追加
@coderabbitai
Copy link

coderabbitai bot commented Jan 28, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

- GitHub Actionsのset-outputをGITHUB_OUTPUTに変更(10ファイル)
  - 非推奨のset-outputコマンドを新しいGITHUB_OUTPUT方式に更新
  - actions/cache@v4使用時の警告を解消

- Codeceptionテストの安定化を改善
  - AbstractPage::goPage()にwaitForJSを追加してページ遷移を確実に待機
  - AbstractAdminPage::goPage()にwaitとリトライロジックを追加
  - AbstractAdminPage::atPage()でsee()をwaitForText()に変更
  - StaleElementReferenceExceptionの発生を防止
@dotani1111
Copy link
Contributor Author

Backward系のテストはもういらない気がする。

@dotani1111
Copy link
Contributor Author

[Facebook\WebDriver\Exception\StaleElementReferenceException] stale element reference: stale element not found

SeleniumとFacebook WebDriveの通信ができないようなので、調べてみる。

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