From cb130bc2ac89e3edbba9c514c196e36bca904c56 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 6 Jan 2025 22:02:35 +0100 Subject: [PATCH] chore: add utility scripts --- cuddle.yaml | 7 +++++++ scripts/run.sh | 5 +++++ scripts/test.sh | 5 +++++ scripts/watch.sh | 6 ++++++ tmp/build-errors.log | 1 + 5 files changed, 24 insertions(+) create mode 100755 scripts/run.sh create mode 100755 scripts/test.sh create mode 100755 scripts/watch.sh create mode 100644 tmp/build-errors.log diff --git a/cuddle.yaml b/cuddle.yaml index 01c3cd7..e18a24a 100644 --- a/cuddle.yaml +++ b/cuddle.yaml @@ -14,3 +14,10 @@ please: settings: api_url: https://git.front.kjuulh.io +scripts: + run: + type: shell + watch: + type: shell + test: + type: shell diff --git a/scripts/run.sh b/scripts/run.sh new file mode 100755 index 0000000..1650b76 --- /dev/null +++ b/scripts/run.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +set -e pipefail + +go run ./cmd/orbis diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..dbbecc6 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +set -e pipefail + +gotestsum diff --git a/scripts/watch.sh b/scripts/watch.sh new file mode 100755 index 0000000..a3e9835 --- /dev/null +++ b/scripts/watch.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env zsh + +set -e pipefail + +air --build.cmd "go build -o bin/orbis ./cmd/orbis" --build.bin "./bin/orbis" + diff --git a/tmp/build-errors.log b/tmp/build-errors.log new file mode 100644 index 0000000..40b5ed1 --- /dev/null +++ b/tmp/build-errors.log @@ -0,0 +1 @@ +exit status 1exit status 1exit status 1exit status 1 \ No newline at end of file