Skip to content

Commit

Permalink
Enable golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Sep 3, 2024
1 parent bb91e1c commit f6fbb6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
4 changes: 2 additions & 2 deletions cmd/letsencrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
},
Expand Down

0 comments on commit f6fbb6d

Please sign in to comment.