Add unit test workflow
This commit is contained in:
parent
7b25bc6083
commit
5df202fee1
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -4,8 +4,25 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v3
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: Roang-zero1/factorio-mod-luacheck@master
|
uses: Roang-zero1/factorio-mod-luacheck@master
|
||||||
with:
|
with:
|
||||||
luacheckrc_url: ""
|
luacheckrc_url: ""
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: luk3yx/minetest-formspec_ast
|
||||||
|
path: formspec_ast
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: flow
|
||||||
|
|
||||||
|
- name: Run unit tests
|
||||||
|
uses: lunarmodules/busted@v2.1.2
|
||||||
|
with:
|
||||||
|
args: --directory=flow --verbose test.lua
|
||||||
|
Loading…
x
Reference in New Issue
Block a user