2021-07-30 19:28:48 +02:00
|
|
|
name: "CI Tests"
|
2021-07-30 19:16:43 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2021-07-30 19:22:51 +02:00
|
|
|
Syntax-Check:
|
2021-07-30 19:37:48 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-30 19:28:13 +02:00
|
|
|
steps:
|
2021-07-30 19:45:31 +02:00
|
|
|
# Checkout the git repo
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-07-30 19:32:20 +02:00
|
|
|
- name: Install Dependencies
|
2021-07-30 19:38:48 +02:00
|
|
|
run: sudo apt-get install lua5.1
|
2021-07-30 19:34:53 +02:00
|
|
|
|
|
|
|
- name: uname -a
|
2021-07-30 19:32:20 +02:00
|
|
|
run: uname -a
|
2021-07-30 19:34:53 +02:00
|
|
|
|
2021-07-30 19:39:55 +02:00
|
|
|
- name: Lua version
|
|
|
|
run: lua -v
|
2021-07-30 19:34:53 +02:00
|
|
|
|
2021-07-30 19:32:20 +02:00
|
|
|
- name: Perform Check
|
2021-07-30 19:43:02 +02:00
|
|
|
run: |
|
|
|
|
ls -la
|
|
|
|
find . -type f -name '*.lua' -not -path '*luarocks*' -not -path '*.git/*' -print0 | xargs -0 -n1 -P "$(nproc)" luac -p;
|
2021-07-30 19:22:51 +02:00
|
|
|
Busted:
|
2021-07-30 19:37:48 +02:00
|
|
|
runs-on: ubuntu-latest
|
2021-07-30 19:28:13 +02:00
|
|
|
steps:
|
2021-07-30 19:45:31 +02:00
|
|
|
# Checkout the git repo
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-07-30 19:32:20 +02:00
|
|
|
- name: Install Dependencies
|
2021-07-30 19:38:48 +02:00
|
|
|
run: sudo apt-get install lua5.1 luarocks
|
2021-07-30 19:34:53 +02:00
|
|
|
|
|
|
|
- name: uname -a
|
2021-07-30 19:32:20 +02:00
|
|
|
run: uname -a
|
2021-07-30 19:34:53 +02:00
|
|
|
|
2021-07-30 19:39:55 +02:00
|
|
|
- name: Lua version
|
|
|
|
run: lua -v
|
2021-07-30 19:34:53 +02:00
|
|
|
|
2021-07-30 19:32:20 +02:00
|
|
|
- name: Run Tests
|
2021-07-30 19:43:02 +02:00
|
|
|
run: |
|
|
|
|
ls -la
|
|
|
|
./tests.sh
|