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

整理: workflow の冗長な記述を削除 #1286

Merged
merged 7 commits into from
May 27, 2024

Conversation

tarepan
Copy link
Contributor

@tarepan tarepan commented May 20, 2024

内容

workflow の冗長な記述の削除するリファクタリングを提案します。

削除対象となった記述と理由は以下である:

  • ワンライナーの run: | : bash 最小化の方向性であるため、複数行を前提とする必要無し
  • id: setup-python : 参照されない ID は不要
  • branches: : 全PR受け入れなら条件文は冗長
  • on: [ ... ] : テストは全条件で実行されるため、条件文を想定して xxx: 記法とする必要無し
  • shell: bash : グローバルの default と同一設定であり冗長
  • python -m pip : 多くの箇所で pip を採用しており動作も同じため冗長

関連 Issue

無し

@tarepan tarepan requested a review from a team as a code owner May 20, 2024 11:35
@tarepan tarepan requested review from Hiroshiba and removed request for a team May 20, 2024 11:35
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workflowの書式にこだわりだしてくるといよいよフォーマッター導入の機運ですね!

いつも適当にPrettierでフォーマットしていますが、ステップごとに改行をいれるかどうかとかは設定になかった気がします。
なにか良いフォーマッターがあれば・・・。

@Hiroshiba Hiroshiba merged commit c4f10e3 into VOICEVOX:master May 27, 2024
4 checks passed
@tarepan tarepan deleted the refactor/workflow_format branch May 27, 2024 10:32
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.

2 participants