Skip to content

Commit

Permalink
CI for /build
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Oct 1, 2022
1 parent 13a5837 commit 0f173e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/build.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Build is the build pipeline for this repository.
package main

import (
Expand Down Expand Up @@ -35,6 +36,7 @@ func taskTest() goyek.Task {
Name: "test",
Usage: "go test with code covarage",
Action: func(tf *goyek.TF) {
Exec(tf, buildDir, "go test")
Exec(tf, "", "go test -covermode=atomic -coverprofile=coverage.out ./...")
},
}
Expand All @@ -46,6 +48,7 @@ func taskLint() goyek.Task {
Usage: "golangci-lint",
Action: func(tf *goyek.TF) {
Exec(tf, buildDir, "go install github.com/golangci/golangci-lint/cmd/golangci-lint")
Exec(tf, buildDir, "golangci-lint run")
Exec(tf, "", "golangci-lint run")
},
}
Expand Down

0 comments on commit 0f173e4

Please sign in to comment.