diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-13 14:49:06 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-13 14:49:06 -0400 |
| commit | cf3a4e09a85bc9d073b517906a0b473f526d43aa (patch) | |
| tree | adcf703d59052b6a48619f0ed4b6f173e7e02fb6 /scripts/test.sh | |
| parent | Remove setup in build.yml (diff) | |
| download | checkmate-cf3a4e09a85bc9d073b517906a0b473f526d43aa.zip | |
Add test script, scripts/ folder, and use test script in ci
Diffstat (limited to 'scripts/test.sh')
| -rwxr-xr-x | scripts/test.sh | 9 |
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 "$@" |