-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (34 loc) · 966 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1", "5.2", "5.3", "5.4" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4
with:
luarocksVersion: "3.10.0"
- name: Build
run: scripts/setup_local_luarocks.sh
- name: Run Tests
run: scripts/run_tests.sh
- name: Lint
run: scripts/lint_teal.sh
- name: Check for untracked or modified files
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: Untracked or modified files found."
git status
exit 1
else
echo "No untracked or modified files."
fi