Skip to content

textlint ワークフロー: paths補強と並列実行抑制 #36

@nuitsjp

Description

@nuitsjp

対象

  • .github/workflows/textlint.yml

改善案(どう修正するか / 理由)

1) paths の対象を補強

  • 修正: pnpm-lock.yaml.textlintignorepaths に追加する。
  • 理由: 依存関係や除外設定の変更で lint 結果が変わるのに、現状だとワークフローが起動しない可能性があるため。

2) pull_request.types を絞る

  • 修正: pull_requestopened / synchronize / reopened に限定する。
  • 理由: ファイル変更がないイベント(ラベル付け等)での無駄実行を減らし、CI負荷と待ち時間を下げるため。

3) concurrency で古い実行をキャンセル

  • 修正: 同一 PR の実行は最新のみ残す(例: group: textlint-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: true)。
  • 理由: PR更新が連続したときの無駄なlint待ちを避けるため。

4) timeout-minutes の設定(任意)

  • 修正: ジョブに timeout-minutes を追加する。
  • 理由: 依存解決などでハングした場合のランナー占有を防ぐため。

受け入れ条件

  • pnpm-lock.yaml / .textlintignore 変更で textlint ワークフローが起動する。
  • PR更新時に古い textlint 実行がキャンセルされ、最新のみが走る。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions