GitHub Actions で Go のテストを実行する
概要
GitHub Actions で Go の超シンプルなテストを実行してみたのでメモ。
GitHub Actions
現在 limited public beta で、使いたい人はこちらからエントリーが必要。
コード
.github/main.workflow
を作成しただけ。
$ tree -a . ├── .github │ └── main.workflow ├── Makefile ├── main.go └── main_test.go
.github/main.workflow
workflow "Test workflow" { on = "push" resolves = "Test" } action "Test" { uses = "docker://golang:1.11" runs = "make" args = "test" }