Skip to content

Commit f90c7b3

Browse files
run tests in ci
1 parent 8ad23c5 commit f90c7b3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Build
2929
run: scripts/setup_local_luarocks.sh
3030

31+
- name: Run Tests
32+
run: scripts/run_tests.sh
33+
3134
- name: Lint
3235
run: scripts/lint_teal.sh
3336

scripts/run_tests.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Navigate to the root of the repo
5+
cd "$(dirname "$0")/.."
6+
7+
# Set the local LuaRocks path
8+
LUAROCKS_TREE="$(pwd)/luarocks_tree"
9+
10+
# Run unit tests
11+
echo "Run LuaRocks tests:"
12+
luarocks test --tree="$LUAROCKS_TREE"

0 commit comments

Comments
 (0)