aboutsummaryrefslogtreecommitdiffstats
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
parentRemove setup in build.yml (diff)
downloadcheckmate-cf3a4e09a85bc9d073b517906a0b473f526d43aa.zip
Add test script, scripts/ folder, and use test script in ci
-rw-r--r--.build.yml3
-rwxr-xr-xscripts/release.sh (renamed from release.sh)0
-rwxr-xr-xscripts/test.sh9
3 files changed, 10 insertions, 2 deletions
diff --git a/.build.yml b/.build.yml
index c74204e..702d2cc 100644
--- a/.build.yml
+++ b/.build.yml
@@ -7,5 +7,4 @@ sources:
tasks:
- test: |
cd checkmate
- go test -race -coverprofile=coverage.out -covermode=atomic ./...
- go tool cover -func=coverage.out
+ ./scripts/test.sh
diff --git a/release.sh b/scripts/release.sh
index e19c244..e19c244 100755
--- a/release.sh
+++ b/scripts/release.sh
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 "$@"