2022-02-12 20:12:12 +01:00
|
|
|
on: [push, pull_request]
|
2024-08-16 17:10:25 +02:00
|
|
|
name: "Check"
|
2022-02-12 20:12:12 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
2024-08-16 17:10:25 +02:00
|
|
|
name: "Luacheck"
|
2022-02-12 20:12:12 +01:00
|
|
|
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 ./
|
2022-12-06 17:54:21 +01:00
|
|
|
|
2024-08-16 17:10:25 +02:00
|
|
|
mineunit:
|
2022-12-06 17:54:21 +01:00
|
|
|
runs-on: ubuntu-latest
|
2024-08-16 17:10:25 +02:00
|
|
|
name: "Mineunit tests"
|
2022-12-06 17:54:21 +01:00
|
|
|
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
|
|
|
|
- name: run mesecons_fpga tests
|
|
|
|
working-directory: ./mesecons_fpga/
|
|
|
|
run: $HOME/.luarocks/bin/mineunit -q
|
|
|
|
- name: run mesecons_luacontroller tests
|
|
|
|
working-directory: ./mesecons_luacontroller/
|
|
|
|
run: $HOME/.luarocks/bin/mineunit -q
|