-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (35 loc) · 902 Bytes
/
Makefile
File metadata and controls
51 lines (35 loc) · 902 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: build build-api build-worker test clean run docker-up docker-down docker-logs docker-build test-api build-lint check restore
build: build-api build-worker
build-api:
dotnet build src/Api/Api.csproj -c Release
build-worker:
dotnet build src/Worker/Worker.csproj -c Release
restore:
dotnet restore
test:
dotnet test
clean:
dotnet clean
rm -rf src/Api/bin src/Api/obj
rm -rf src/Worker/bin src/Worker/obj
run: build-api
dotnet run --project src/Api/Api.csproj
docker-build:
docker compose build
docker-up:
docker compose up -d
docker-down:
docker compose down
docker-logs:
docker compose logs -f
test-api:
./scripts/test-api.sh
build-lint: build
@echo "Running build and format check..."
dotnet format --verify-no-changes
dotnet test
check:
dotnet build --no-restore
format:
dotnet format
.DEFAULT_GOAL := build