-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 681 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 681 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
.PHONY: build test mutation lint sec-scan up down all
build:
dotnet restore Sentinel.slnx --locked-mode
dotnet build Sentinel.slnx -c Release
test:
dotnet test Sentinel.slnx --logger "console;verbosity=detailed"
mutation:
dotnet tool restore
dotnet stryker --config-file stryker-config.json
lint:
dotnet format Sentinel.slnx --verify-no-changes
sec-scan:
@echo "Running local container scan (requires Trivy installed)..."
docker build -t sentinel-api:local -f src/Sentinel.AspNetCore/Dockerfile .
trivy image --severity CRITICAL,HIGH --ignore-unfixed sentinel-api:local
up:
docker-compose up --build -d
down:
docker-compose down -v
all: build lint test sec-scan