From f90c7b3fbcce24462ba83775af97cb706ef1a301 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Sun, 1 Dec 2024 16:21:35 -0600 Subject: [PATCH] run tests in ci --- .github/workflows/test.yml | 3 +++ scripts/run_tests.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 scripts/run_tests.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b669a2..e9fd629 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,9 @@ jobs: - name: Build run: scripts/setup_local_luarocks.sh + - name: Run Tests + run: scripts/run_tests.sh + - name: Lint run: scripts/lint_teal.sh diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh new file mode 100755 index 0000000..6caa863 --- /dev/null +++ b/scripts/run_tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +# Navigate to the root of the repo +cd "$(dirname "$0")/.." + +# Set the local LuaRocks path +LUAROCKS_TREE="$(pwd)/luarocks_tree" + +# Run unit tests +echo "Run LuaRocks tests:" +luarocks test --tree="$LUAROCKS_TREE"