Skip to content

Commit

Permalink
feat(make): add test target
Browse files Browse the repository at this point in the history
  • Loading branch information
mbobrovskyi committed Nov 16, 2024
1 parent 35e214f commit 92bd1e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:

- name: Run unit tests
run: |
pwd && ls -ltr && go version && go test ./... -cover
pwd && ls -ltr && go version && make test
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Run unit tests
run: |
go test ./... -cover
make test
- name: GoReleaser
uses: goreleaser/[email protected]
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: lambda

lambda:
mkdir -p functions
CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w" -o functions/github-action-webhook cmd/webhook/main.go

all: lambda
all: lambda

.PHONY: test
test:
go test ./... -cover

0 comments on commit 92bd1e4

Please sign in to comment.