This is a collection of examples. Tested on:
- dep version 0.5.0 (check the version
dep version
) - Go version 1.11.1
- GNU Make 3.81
- Linux Ubuntu 14.04
- Mac OSX 10.13
- Windows, with Git Bash, Docker for Windows, make from ezwinports, zip.exe
Each examples has a Makefile with 4 targets:
make deploy
(or just make) deploys the action, precompiling itmake devel
deploys the action in source format, leaving the compilation to the runtimemake test
runs a simple test on the action; it should be already deployedclean
removes intermediate files
Available examples:
- Simple Golang action main is
main.Main
- Simple Golang action main is
main.Hello
- Golang action with a subpackage main is
main.Main
invoking ahello.Hello
- Golang action with a vendor folder main is
main.Main
using a dependencygithub.com/rs/zerolog
- Golang action with a subpackage and vendor folder main is
main.Hello
invoking ahello.Hello
using a dependencygithub.com/sirupsen/logrus
- Standalone Golang Action main is
main.main
, implements the ActionLoop directly - Simple Bash action a simple bash script action implementing the ActionLoop directly