mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-06-01 20:33:03 +00:00
44 lines
996 B
YAML
44 lines
996 B
YAML
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 Dependencies
|
|
run: sudo apt-get install lua5.1
|
|
|
|
- name: uname -a
|
|
run: uname -a
|
|
|
|
- name: Lua version
|
|
run: lua -v
|
|
|
|
- name: Perform Check
|
|
run: |
|
|
ls -la
|
|
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 Dependencies
|
|
run: sudo apt-get install lua5.1 luarocks
|
|
|
|
- name: uname -a
|
|
run: uname -a
|
|
|
|
- name: Lua version
|
|
run: lua -v
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
ls -la
|
|
./tests.sh
|