mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-19 00:20:36 +01:00
36 lines
959 B
YAML
36 lines
959 B
YAML
on: [push, pull_request]
|
|
name: Check & Release
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- name: apt
|
|
run: sudo apt-get install -y luarocks
|
|
- name: luacheck install
|
|
run: luarocks install --local luacheck
|
|
- name: luacheck run
|
|
run: $HOME/.luarocks/bin/luacheck ./
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- name: apt
|
|
run: sudo apt-get install -y luarocks
|
|
- name: busted install
|
|
run: luarocks install --local busted
|
|
- name: luacov install
|
|
run: luarocks install --local luacov
|
|
- name: mineunit install
|
|
run: luarocks install --server=https://luarocks.org/dev --local mineunit
|
|
- name: run mesecons tests
|
|
working-directory: ./mesecons/
|
|
run: $HOME/.luarocks/bin/mineunit -q
|
|
- name: run mesecons_mvps tests
|
|
working-directory: ./mesecons_mvps/
|
|
run: $HOME/.luarocks/bin/mineunit -q
|