Skip to content

Commit

Permalink
run tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
FourierTransformer committed Dec 1, 2024
1 parent 8ad23c5 commit f90c7b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f90c7b3

Please sign in to comment.