aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-13 14:49:06 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-13 14:49:06 -0400
commitcf3a4e09a85bc9d073b517906a0b473f526d43aa (patch)
treeadcf703d59052b6a48619f0ed4b6f173e7e02fb6 /scripts/test.sh
parentRemove setup in build.yml (diff)
downloadcheckmate-cf3a4e09a85bc9d073b517906a0b473f526d43aa.zip
Add test script, scripts/ folder, and use test script in ci
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-xscripts/test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
new file mode 100755
index 0000000..61739ba
--- /dev/null
+++ b/scripts/test.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -eou pipefail
+
+main() {
+ go test -race -coverprofile=coverage.out -covermode=atomic ./...
+ go tool cover -func=coverage.out
+}
+
+main "$@"