add recover-forever option #294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: install | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [master] | |
env: | |
GO_VERSION: '1.20' | |
jobs: | |
install_go_get: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "^${{ env.GO_VERSION }}" | |
- name: Install | |
shell: bash | |
run: | | |
set +x | |
go mod init test | |
go get github.com/lovoo/goka@master | |
cat > main.go << EndOfMessage | |
package main | |
import ( | |
"context" | |
"github.com/lovoo/goka" | |
) | |
func main() { | |
proc, _ := goka.NewProcessor(nil, goka.DefineGroup("test")) | |
proc.Run(context.Background()) | |
} | |
EndOfMessage | |
cat main.go | |
go mod tidy | |
cat go.mod | |
echo "Compiling module" | |
go build -v . | |
echo "... done" | |