Minetest-WorldEditAdditions/.github/workflows/test.yml

53 lines
1.3 KiB
YAML
Raw Normal View History

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:45:31 +00:00
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
2021-07-30 17:49:05 +00:00
- name: Install apt dependencies
2021-07-30 17:47:21 +00:00
run: sudo apt-get --quiet install lua5.1
- name: Environment info
run: uname -a; lua -v
2021-07-30 17:34:53 +00:00
2021-07-30 17:32:20 +00:00
- name: Perform Check
2021-07-30 17:47:21 +00:00
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:45:31 +00:00
# Checkout the git repo
- name: Checkout
uses: actions/checkout@v2
2021-07-30 17:49:05 +00:00
- name: Install apt dependencies
2021-07-30 17:47:21 +00:00
run: sudo apt-get --quiet install lua5.1 luarocks
- name: Environment info
run: uname -a; lua -v
2021-07-30 17:34:53 +00:00
2021-07-30 17:49:05 +00:00
- name: Set up tests
run: ./tests.sh run
2021-07-30 17:32:20 +00:00
- name: Run Tests
2021-07-30 17:47:21 +00:00
run: ./tests.sh run
2021-07-30 18:03:40 +00:00
LuaCheck:
runs-on: ubuntu-latest
2021-07-30 18:19:09 +00:00
steps:
2021-07-30 18:03:40 +00:00
# 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
2021-07-30 18:03:40 +00:00
- name: Run luacheck
run: luacheck .
2021-07-30 18:03:40 +00:00