forked from inngest/inngest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (41 loc) · 1.18 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
.PHONY: dev
dev:
goreleaser build --single-target --snapshot --rm-dist
xgo:
xgo -pkg cmd -ldflags="-s -w" -out build/inngest -targets "linux/arm64,linux/amd64,darwin/arm64,darwin/amd64" .
.PHONY: test
test:
sh -c 'cd ./pkg/cuedefs && cue vet ./tests/... -c'
sh -c 'cd ./pkg/cuedefs && cue eval ./tests/... -c'
go test $(shell go list ./... | grep -v tests) -race -count=1
golangci-lint run
.PHONY: vendor
vendor:
go install github.com/goware/modvendor@latest
go mod tidy && go mod vendor && modvendor -copy="**/*.a" -v
.PHONY: lint
lint:
golangci-lint run --verbose
.PHONY: e2e
e2e:
./tests.sh
# $GOBIN must be set and be in your path for this to work
queries:
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
sqlc generate
# sed -i 's#interface{}#uuid.UUID#' ./pkg/cqrs/ddb/queries/*.go
.PHONY: snapshot
snapshot:
goreleaser release --snapshot --skip-publish --rm-dist
.PHONY: build-ui
build-ui:
cd ui && pnpm install
cd ui && pnpm build
cp -r ./ui/dist/* ./pkg/devserver/static/
cp -r ./ui/.next/routes-manifest.json ./pkg/devserver/static/
.PHONY: build
build:
goreleaser build
.PHONY: gql
gql:
go run github.com/99designs/gqlgen --verbose --config ./pkg/coreapi/gqlgen.yml