-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.3 KB
/
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
46
47
48
49
50
51
52
name: "CI Tests"
on: [push]
jobs:
Syntax-Check:
runs-on: ubuntu-latest
steps:
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
- name: Install apt dependencies
run: sudo apt-get --quiet install lua5.1
- name: Environment info
run: uname -a; lua -v
- name: Perform Check
run: find . -type f -name '*.lua' -not -path '*luarocks*' -not -path '*.git/*' -print0 | xargs -0 -n1 -P "$(nproc)" luac -p;
Busted:
runs-on: ubuntu-latest
steps:
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
- name: Install apt dependencies
run: sudo apt-get --quiet install lua5.1 luarocks
- name: Environment info
run: uname -a; lua -v
- name: Set up tests
run: ./tests.sh run
- name: Run Tests
run: ./tests.sh run
LuaCheck:
runs-on: ubuntu-latest
steps:
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
- name: Install apt dependencies
run: sudo apt-get --quiet install lua5.1 lua-check
- name: Environment info
run: uname -a; lua -v
- name: Run luacheck
run: luacheck .