diff --git a/.github/workflows/Go-SDK-PR-Check.yaml b/.github/workflows/Go-SDK-PR-Check.yaml index ebe5592..6d204af 100644 --- a/.github/workflows/Go-SDK-PR-Check.yaml +++ b/.github/workflows/Go-SDK-PR-Check.yaml @@ -78,9 +78,10 @@ jobs: run: | go test ./... -coverprofile test_coverage.out -covermode=atomic - name: Upload results to codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: - file: ./test_coverage.out + files: ./test_coverage.out flags: sdk-go name: sdk-go fail_ci_if_error: true + verbose: true diff --git a/hack/boilerplate.txt b/hack/boilerplate.txt index 6a7425e..3b2e6c3 100644 --- a/hack/boilerplate.txt +++ b/hack/boilerplate.txt @@ -1,4 +1,4 @@ -// Copyright 2022 The Serverless Workflow Specification Authors +// Copyright 2023 The Serverless Workflow Specification Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/model/zz_generated.deepcopy.go b/model/zz_generated.deepcopy.go index 05803fb..e53eb76 100644 --- a/model/zz_generated.deepcopy.go +++ b/model/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ //go:build !ignore_autogenerated // +build !ignore_autogenerated -// Copyright 2022 The Serverless Workflow Specification Authors +// Copyright 2023 The Serverless Workflow Specification Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/test/path.go b/test/path.go index e9ff5e4..69c7113 100644 --- a/test/path.go +++ b/test/path.go @@ -18,6 +18,7 @@ import ( "os" "path/filepath" "runtime" + "strings" "github.com/pkg/errors" ) @@ -49,5 +50,9 @@ func CurrentProjectPath() string { func currentFilePath() string { _, file, _, _ := runtime.Caller(1) - return file + if strings.HasSuffix(file, "/") { + return file + } + println("Returning an empty string for currentFilePath since it's not a caller path: " + file) + return "" } diff --git a/tools.mod b/tools.mod index a5c10f5..69ff48c 100644 --- a/tools.mod +++ b/tools.mod @@ -1,6 +1,6 @@ -module github.com/serverlessworkflow/sdk-go +module github.com/serverlessworkflow/sdk-go/v2 -go 1.14 +go 1.19 require ( github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170 // indirect