- GitHub Actions 実践入門
- Sample code is here
- This repository is for GitHub Actions Sandbox.
- I will try to use GitHub Actions in this repository with sample code.
cmd/main.go
lib/*.go
.github/workflows/*.yml
- workflow file
.github/workflows/ci.yml
- used by workflow file
Makefile
- target files
cmd/main.go
lib/*.go
- Triggered by
push
orpull_request
event - Set up Go environment
- Run
make test
command - Run
golangci-lint run
command - If
make test
andgolangci-lint run
are successful, then runmake build
command
- workflow file
.github/workflows/golangci-lint.yml
- used by workflow file
.golangci.yml
- target files
cmd/main.go
lib/*.go
- Triggered by below events
push
event with tags (e.g.v1.0.0
) onmaster
ormain
branchpull_request
event
- Set up Go environment
- Use golangci/golangci-lint-action action
- workflow file
.github/workflows/reviewdog-golangci-lint.yml