setup action とは?
setup action は、特定の Node、Python、Java バージョンなど、名前付きのツールチェーンをプロビジョニングし、job の残りの部分に公開する再利用可能な CI action です。まず tool cache を確認し、必要な場合にのみ download してから、ツールを path に追加し、関連する設定を構成します。これにより、workflow がツールチェーンを固定して使用する方法が標準化されます。
なぜ重要か
setup action は手作りのインストールスクリプトを排除し、ツールチェーンのバージョンを明示的かつ再現可能にします。ウォームな tool cache と組み合わせることで、セットアップは job 全体で高速かつ一貫したものになります。要求されたバージョンは、マネージド runner イメージが事前インストールしておくべきものを示すシグナルにもなります。
関連ガイド
What Is a Tool Cache?A tool cache is a directory of preinstalled language and tool versions on a runner that setup actions can use…
What Is the Hosted Tool Cache?The hosted tool cache is the preinstalled set of tool versions baked into a hosted runner image, exposed thro…
What Is Action Metadata?Action metadata is the manifest file that declares an action's name, inputs, outputs, and how it runs, tellin…