aboutsummaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-06-19 19:16:25 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2026-06-19 22:32:15 +0200
commit25fc48fb17b53fe1c155c4f53f673ed91fdd8f74 (patch)
treede96add2a7ae8c5cc79a354fbffa26e80349cc15 /Justfile
Initial extraction from Norganize
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..b3b6a9b
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,24 @@
+profile := "debug"
+
+default: build
+
+build:
+ swift build -c {{profile}}
+
+test:
+ swift test
+
+coverage:
+ swift test --enable-code-coverage
+ xcrun llvm-cov report \
+ .build/debug/NorgEditorTests.xctest/Contents/MacOS/NorgEditorTests \
+ -instr-profile=.build/debug/codecov/default.profdata
+
+format:
+ swift-format --in-place --recursive Sources Tests
+ swiftlint --fix Sources Tests
+
+lint:
+ swiftlint Sources Tests
+
+ci: lint test