diff --git a/.github/workflows/check-unit-tests.yml b/.github/workflows/check-unit-tests.yml index e0a90e9ad..2fd99120c 100644 --- a/.github/workflows/check-unit-tests.yml +++ b/.github/workflows/check-unit-tests.yml @@ -11,6 +11,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: "go.mod" - - name: Running Golang tests - run: go test -v -short ./... + go-version-file: go.mod + - name: Run GolangCI-Lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60.3 + - name: Test application + run: go test -short -v ./... diff --git a/cmd/letsencrypt.go b/cmd/letsencrypt.go index ea21f05e6..1075338cf 100644 --- a/cmd/letsencrypt.go +++ b/cmd/letsencrypt.go @@ -7,7 +7,7 @@ See the LICENSE file for more details. package cmd import ( - "log" + "fmt" "github.com/konstructio/kubefirst-api/pkg/certificates" "github.com/konstructio/kubefirst/internal/progress" @@ -37,7 +37,7 @@ func status() *cobra.Command { TraverseChildren: true, Run: func(cmd *cobra.Command, args []string) { if err := certificates.CheckCertificateUsage(domainNameFlag); err != nil { - log.Printf("failed to check certificate usage for domain %q: %w", domainNameFlag, err) + fmt.Printf("failed to check certificate usage for domain %q: %s\n", domainNameFlag, err) } progress.Progress.Quit() },