nektos/act
Github Actionsをlocalで実行できる
Dockerを使う
GitHub Actionsのscriptが正しいかを毎回pushして確認する必要がなくなる
github
install
$ nix-shell -p act
commands
$ act -l
actionsの一覧
$ act -l <event name>
<event name>は.github/workflows/hoge.ymlのonで設定できるものを指定する
例えば、$ act -l pull_requestだと、pull_request時に実行されるactionsの一覧を表示する
e.g. -l pull_request, -l push
$ act -n <action_name>
実際には実行せずにdry runする
typoとかがあれば気付けるmrsekut.icon
$ act <evnet name>
<event name>時に実行するactionsを全部実行
e.g. act pull_request
#??
repository secretの扱い
https://vlike-vlife.netlify.app/posts/testtool_act
https://masaru-tech.hateblo.jp/entry/2020/07/17/100621