This is a collection of examples. Tested on:
- Go version 1.14.6
- GNU Make 3.81
- Linux Ubuntu 18.04
- Mac OSX 10.15.6
- Windows 10 with WSL 2
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 package main is
main.Main
invoking ahello.Hello
and a test - Golang action with a module main is
main.Main
using a dependencygithub.com/rs/zerolog
- Standalone Golang Action implements the ActionLoop directly in go
- Simple Bash action action implementing the ActionLoop directly