GitHub Actions
GitHub Actions is your workflow: built by you, run by us. GitHub Actions allows you to connect and share containers to run your software development workflow. Easily build, package, release, update, and deploy your project in any language—on GitHub or any external system—without having to run code yourself.
Future of Software: Developers at the center of the universe | The GitHub Blog
権限スコープ
https://docs.github.com/ja/actions/using-jobs/assigning-permissions-to-jobs
GitHub上でDockerコンテナが動くワークフローが組めるようになる
GitHub Actions now supports CI/CD, free for public repositories
August 8, 2019からCI/CDができるようになった
公開リポジトリだと無料
非公開でも制限付きで無料
書き方
.github/workflow/以下にYAMLを書いていく
名前は何でもいいらしい
並列実行できる
プリセットがある
useで指定できる
nodeを使いたい時は https://github.com/actions/setup-node#usage をつかう
package.jsonのengineにnpmバージョンを固定したい時にはどうすればいいのだろう?
nodeのバージョン
https://nodejs.org/ja/download/releases/
キャッシュも簡単にできる
https://github.blog/changelog/2021-07-02-github-actions-setup-node-now-supports-dependency-caching/
デバッグ
yamlをpushすると実行される
各ステップの実行ログを見ることができる
kadoyau.icon
JenkinsやCircleCIとの棲み分けは?
ActionsでできるならActionsで全部やればいい
actionsは中の人とも2,3喋った感じだと、今まではjenkins経由とかで複数サービス呼び出しとかしてたのをGitHub上でpipeline組めますよ的な感じかと。
https://twitter.com/withgod/status/1052607131034116096