-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (28 loc) · 884 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
init:
go mod tidy
git config core.hooksPath .githooks
go install golang.org/x/lint/golint@latest
terraform init
lint:
go vet ./...
golint -set_exit_status ./...
fmt:
terraform fmt -recursive
gofmt -s -w .
mock-gen:
go generate ./...
clean:
rm -rf dist/
lambda-env = GOOS=linux GOARCH=amd64 CGO_ENABLED=0
ldflags = "-s -w"
build-github-events:
cd github-events/ingest && $(lambda-env) go build -ldflags=$(ldflags) -o ../../dist/github-events
build-github-app-tokens:
cd github-app/tokens && $(lambda-env) go build -ldflags=$(ldflags) -o ../../dist/github-app-tokens
github-events-bundle: build-github-events
cd dist && zip github-events.zip github-events
github-app-bundle: build-github-app-tokens
cd dist && zip github-app.zip github-app-tokens
lambda-bundles: clean github-events-bundle github-app-bundle
create-github-app:
cd github-app && go run main.go