feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 2m13s

This commit is contained in:
soda64 committed 2026-12-02 19:04:38 +01:00
1 parent 011f23e637
commit 33082598fc
19 files changed
+496 -6

No files matched your search

+7 -3
View File
@@ -9,7 +9,7 @@ RUN_CONTAINER = $(ENGINE) run --rm \
-w /workspace \
$(IMAGE)
.PHONY: help image check lint test test-all fmt fmt-check shell
.PHONY: help image check lint test test-project test-all fmt fmt-check shell
help:
@echo "Dostępne komendy:"
@@ -18,6 +18,7 @@ help:
@echo " make lint - Uruchom staticcheck"
@echo " make test PKG=./exercises/01-core/01-basics - Uruchom testy wybranego rozdziału (-race)"
@echo " make test - Uruchom testy 01-core + 02-engineering-2026"
@echo " make test-project - Uruchom testy mini-projektu incident-tracker"
@echo " make test-all - Uruchom testy całego repozytorium"
@echo " make fmt - Sformatuj kod (gofmt)"
@echo " make fmt-check - Sprawdź formatowanie kodu"
@@ -39,14 +40,17 @@ else
$(RUN_CONTAINER) go test -race -v ./exercises/01-core/... ./exercises/02-engineering-2026/...
endif
test-project:
$(RUN_CONTAINER) go test -race -v ./projects/incident-tracker/...
test-all:
$(RUN_CONTAINER) go test -race -v ./...
fmt:
$(RUN_CONTAINER) gofmt -w exercises
$(RUN_CONTAINER) gofmt -w exercises projects
fmt-check:
$(RUN_CONTAINER) sh -c 'out=$$(gofmt -l exercises); test -z "$$out" || (echo "Unformatted files:"; echo "$$out"; exit 1)'
$(RUN_CONTAINER) sh -c 'out=$$(gofmt -l exercises projects); test -z "$$out" || (echo "Unformatted files:"; echo "$$out"; exit 1)'
shell:
$(ENGINE) run --rm -it \