JavaScriptアクションとは?
JavaScriptアクションは、runnerに同梱されたランタイムによって直接実行されるNodeプログラムをエントリーポイントとするアクションです。コンテナの起動を回避するため素早く立ち上がり、ランタイムを備えた任意のrunner OSで動作します。高速でクロスプラットフォームなアクションのほとんどは、この方式で書かれています。
なぜ重要か
コンテナのpullをスキップするため、JavaScriptアクションは最も低レイテンシな実行モデルであり、Linux、Windows、macOSのrunner間で最も移植性が高い。トレードオフは、runnerのランタイムに依存し、独自の依存関係をバンドルしなければならない点です。軽量で広く使われるアクションのデフォルトの選択肢です。
関連ガイド
What Is a Docker Action?A Docker action is a CI action packaged as a container image, so its tools and dependencies are bundled and r…
What Is the Action runs.using Field?The runs.using field in an action manifest declares the action's execution model, such as a JavaScript runtim…
What Is Action Metadata?Action metadata is the manifest file that declares an action's name, inputs, outputs, and how it runs, tellin…