Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions が実行しやすいように jobs を分割 #4671

Merged
merged 5 commits into from
Sep 25, 2020

Conversation

okazy
Copy link
Contributor

@okazy okazy commented Aug 25, 2020

概要(Overview・Refs Issue)

GitHub Actions を再実行する機会が多いためが実行しやすいように jobs を分割しました。
以下の単位で jobs を再実行できます。

  • Unit test for EC-CUBE
  • E2E test for EC-CUBE
  • Plugin test for EC-CUBE
  • Deploy for EC-CUBE

リリースタグを打った際に内部的にタグが打たれるため、CIが2度走るようになっていました。
1回で十分だと思うのでイベントの発火条件を調整しました。

Deploy 内の Dump xx context 系は不要かと思いますので消しました。

方針(Policy)

jobsを分割

実装に関する補足(Appendix)

既存の設定では Unit test, E2E test をパスしないとパッケージングしない設定となっておりましたが、jobs を分けたことによりこちらの設定はなくなってしまいました。
そもそも前提としてテストが通ってからパッケージングすると思うので問題はないかと思います。

テスト(Test)

個人のリポジトリでリリースをして動作確認しました。
https://github.com/okazy/ec-cube/releases/tag/actions-test
https://github.com/okazy/ec-cube/actions

相談(Discussion)

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

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

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

@okazy okazy added the improvement 機能改善 label Aug 25, 2020
@okazy okazy added this to the 4.0.x milestone Aug 25, 2020
@okazy
Copy link
Contributor Author

okazy commented Aug 31, 2020

影響あり
#4679

# Conflicts:
#	.github/workflows/action.yml
@okazy
Copy link
Contributor Author

okazy commented Sep 1, 2020

コンフリクト解消しました。

https://github.com/okazy/ec-cube/releases/tag/action-test2

nanasess added a commit to nanasess/ec-cube2 that referenced this pull request Sep 1, 2020
- main.yml からトリガーするには Personal Access token が必要になり設定が煩雑になるため
- deploy.yml を追加
  - weekly build と release build を担当する
  - release build は EC-CUBE/ec-cube#4671 と同様にテストを省略
@nanasess
Copy link
Contributor

nanasess commented Sep 4, 2020

3系が別リポジトリになったので、 branch: [4.0]* にしてしまって良いかも

@okazy
Copy link
Contributor Author

okazy commented Sep 8, 2020

ありがとうございあます!対象ブランチを拡張しました。

@kiy0taka kiy0taka merged commit 2d9d677 into EC-CUBE:4.0 Sep 25, 2020
@okazy okazy modified the milestones: 4.0.x, 4.0.6 Sep 25, 2020
@chihiro-adachi chihiro-adachi modified the milestones: 4.0.6, 4.1 Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement 機能改善
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants