2021-07-30 17:28:48 +00:00
|
|
|
name: "CI Tests"
|
2021-07-30 17:16:43 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2021-07-30 17:22:51 +00:00
|
|
|
Syntax-Check:
|
2021-07-30 17:37:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-30 17:28:13 +00:00
|
|
|
steps:
|
2021-07-30 17:32:20 +00:00
|
|
|
- name: Install Dependencies
|
2021-07-30 17:38:48 +00:00
|
|
|
run: sudo apt-get install lua5.1
|
2021-07-30 17:34:53 +00:00
|
|
|
|
|
|
|
- name: uname -a
|
2021-07-30 17:32:20 +00:00
|
|
|
run: uname -a
|
2021-07-30 17:34:53 +00:00
|
|
|
|
|
|
|
- name: lua --version
|
2021-07-30 17:32:20 +00:00
|
|
|
run: lua --version
|
2021-07-30 17:34:53 +00:00
|
|
|
|
2021-07-30 17:32:20 +00:00
|
|
|
- name: Perform Check
|
|
|
|
run: find . -type f -name '*.lua' -not -path '*luarocks*' -not -path '*.git/*' -print0 | xargs -0 -n1 -P "$(nproc)" luac -p;
|
2021-07-30 17:22:51 +00:00
|
|
|
Busted:
|
2021-07-30 17:37:48 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-30 17:28:13 +00:00
|
|
|
steps:
|
2021-07-30 17:32:20 +00:00
|
|
|
- name: Install Dependencies
|
2021-07-30 17:38:48 +00:00
|
|
|
run: sudo apt-get install lua5.1 luarocks
|
2021-07-30 17:34:53 +00:00
|
|
|
|
|
|
|
- name: uname -a
|
2021-07-30 17:32:20 +00:00
|
|
|
run: uname -a
|
2021-07-30 17:34:53 +00:00
|
|
|
|
|
|
|
- name: lua --version
|
2021-07-30 17:32:20 +00:00
|
|
|
run: lua --version
|
2021-07-30 17:34:53 +00:00
|
|
|
|
2021-07-30 17:32:20 +00:00
|
|
|
- name: Run Tests
|
|
|
|
run: ./tests.sh
|