From a902e00a29f08478ff431e3ed551eabb7a2eca38 Mon Sep 17 00:00:00 2001 From: Andrey Golev Date: Thu, 5 Mar 2020 12:20:15 +0200 Subject: [PATCH 1/2] Fixes crash when plugin configuration is not defined in a job --- dkron/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dkron/job.go b/dkron/job.go index ffb945e3c..35b24ab45 100644 --- a/dkron/job.go +++ b/dkron/job.go @@ -159,6 +159,9 @@ func NewJobFromProto(in *proto.Job) *Job { procs := make(map[string]PluginConfig) for k, v := range in.Processors { + if len(v.Config) == 0 { + v.Config = make(map[string]string) + } procs[k] = v.Config } job.Processors = procs From 72195dab9db7f9a813a8d5c78e600f81f528603e Mon Sep 17 00:00:00 2001 From: Andrey Golev Date: Fri, 6 Mar 2020 14:38:56 +0200 Subject: [PATCH 2/2] Modified github actions --- .github/workflows/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43f00824e..7f567ac8f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,23 +1,22 @@ name: Test -on: [pull_request] +on: [push,pull_request] jobs: build: name: Test runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 + - name: Set up Go 1.14 uses: actions/setup-go@v1 with: - go-version: 1.13 + go-version: 1.14 id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Get dependencies run: go get -v -t -d ./... - name: Test without docker - run: go test -v -timeout 200s ./... - + run: go test -v -timeout 200s ./... \ No newline at end of file