aboutsummaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2026-06-14 17:07:38 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2026-06-15 13:38:02 +0200
commit3402f5764f794a60f85a152a13c4eacaa2a719f6 (patch)
tree9fafe13da4caee303313033e313461a556f9f495 /Justfile
Extract from Norganizer
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..427d8a3
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,25 @@
+profile := "debug"
+
+default: build
+
+build:
+ swift build -c {{profile}}
+
+test:
+ swift test
+
+coverage:
+ swift test --enable-code-coverage
+ xcrun llvm-cov report \
+ .build/debug/NorgKeyboardToolbarTests.xctest/Contents/MacOS/NorgKeyboardToolbarTests \
+ -instr-profile=.build/debug/codecov/default.profdata \
+ --ignore-filename-regex='\.build|NorgKeyboardToolbar\.swift'
+
+format:
+ swift-format --in-place --recursive Sources Tests
+ swiftlint --fix Sources Tests
+
+lint:
+ swiftlint Sources Tests
+
+ci: lint test