Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 0f173e4

Browse files
committed
CI for /build
1 parent 13a5837 commit 0f173e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/build.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Build is the build pipeline for this repository.
12
package main
23

34
import (
@@ -35,6 +36,7 @@ func taskTest() goyek.Task {
3536
Name: "test",
3637
Usage: "go test with code covarage",
3738
Action: func(tf *goyek.TF) {
39+
Exec(tf, buildDir, "go test")
3840
Exec(tf, "", "go test -covermode=atomic -coverprofile=coverage.out ./...")
3941
},
4042
}
@@ -46,6 +48,7 @@ func taskLint() goyek.Task {
4648
Usage: "golangci-lint",
4749
Action: func(tf *goyek.TF) {
4850
Exec(tf, buildDir, "go install github.com/golangci/golangci-lint/cmd/golangci-lint")
51+
Exec(tf, buildDir, "golangci-lint run")
4952
Exec(tf, "", "golangci-lint run")
5053
},
5154
}

0 commit comments

Comments
 (0)