From 87fc514f32bb2e7dc2c4021ad336f32da56d0d19 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Mon, 29 Dec 2025 22:04:52 -0600 Subject: [PATCH] Add tasks for running tests with race detector and generating SHA256 checksums in Taskfile.yml --- Taskfile.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 373e2c5..7da8e36 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -110,6 +110,11 @@ tasks: cmds: - '{{.GOCMD}} test -short -v ./...' + test-race: + desc: Run tests with race detector + cmds: + - '{{.GOCMD}} test -race -v ./...' + coverage: desc: Generate test coverage report cmds: @@ -196,4 +201,17 @@ tasks: install: desc: Install dependencies cmds: - - '{{.GOCMD}} mod download' \ No newline at end of file + - '{{.GOCMD}} mod download' + + checksum: + desc: Generate SHA256 checksum for binary (uses BINARY_PATH env var if set, otherwise defaults to bin/reticulum-go) + cmds: + - | + BINARY_PATH="${BINARY_PATH:-{{.BUILD_DIR}}/{{.BINARY_NAME}}}" + if [ -f "$BINARY_PATH" ]; then + sha256sum "$BINARY_PATH" > "${BINARY_PATH}.sha256" + echo "Generated checksum: ${BINARY_PATH}.sha256" + else + echo "Error: Binary not found at $BINARY_PATH" + exit 1 + fi \ No newline at end of file