Skip to content

Commit

Permalink
add task test-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbloss committed Aug 8, 2024
1 parent f5d4018 commit fb84a59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb84a59

Please sign in to comment.