-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 889 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (25 loc) · 889 Bytes
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
SHELL := /usr/bin/env bash
.DEFAULT_GOAL := help
.PHONY: help verify deps fmt lint test build compose-config open-pilot-check
help:
@awk 'BEGIN {FS = ":.*##"; printf "Commands:\n"} /^[a-zA-Z0-9_-]+:.*##/ {printf " %-18s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
deps:
pnpm --dir web install --frozen-lockfile
verify: deps fmt lint test build compose-config open-pilot-check ## Run all checks
fmt:
@git ls-files --cached --others --exclude-standard 'backend/*.go' | xargs -r gofmt -w
pnpm --dir web run format
lint:
cd backend && go vet ./...
pnpm --dir web run lint
test:
cd backend && go test ./...
pnpm --dir web run test
build:
cd backend && go build ./cmd/app
pnpm --dir web run build
compose-config:
docker compose config --quiet
open-pilot-check:
@test -f .gitea/ISSUE_TEMPLATE/open-pilot-task.yaml
@grep -q 'Test Command' .gitea/ISSUE_TEMPLATE/open-pilot-task.yaml