diff --git a/Taskfile.yml b/Taskfile.yml index dde21c9f..0754339d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -50,7 +50,13 @@ tasks: desc: Run tests dir: "{{.SRC_DIR}}" cmds: - - go test -race -coverprofile=coverage.txt -covermode=atomic -v ./... {{ .CLI_ARGS }} + - go test -race -coverprofile=coverage.txt -covermode=atomic -v ./common/... {{ .CLI_ARGS }} + + test-integration: + desc: Run Integration tests + dir: "{{.SRC_DIR}}" + cmds: + - go test -race -coverprofile=coverage.txt -covermode=atomic -v ./cmd/... {{ .CLI_ARGS }} update-opslevel-go: desc: Update opslevel-go version to latest release diff --git a/src/cmd/util_test.go b/src/cmd/util_test.go index 57673d3e..7e30d585 100644 --- a/src/cmd/util_test.go +++ b/src/cmd/util_test.go @@ -75,7 +75,7 @@ func writeToYaml(userFileName string, opslevelResource any) error { if err != nil { return err } - if err = os.WriteFile(userFileName, yamlData, 0644); err != nil { + if err = os.WriteFile(userFileName, yamlData, 0o644); err != nil { return err } return nil