Skip to content

Commit 814ebd7

Browse files
use mtt action for integration tests (#361)
Co-authored-by: BuckarooBanzay <[email protected]>
1 parent ad2c11e commit 814ebd7

File tree

9 files changed

+19
-71
lines changed

9 files changed

+19
-71
lines changed

.github/workflows/integration-test.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/mtt.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: mtt
2+
on: [push, pull_request]
3+
jobs:
4+
mtt:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: buckaroobanzay/mtt@main
9+
with:
10+
modname: technic
11+
git_dependencies: |
12+
https://github.com/mt-mods/basic_materials.git
13+
https://github.com/mt-mods/pipeworks.git
14+
https://github.com/minetest-mods/moreores.git
15+
https://github.com/mt-mods/xcompat.git

.test/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

.test/minetest.conf

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Technic
33

44
A mod for [minetest](http://www.minetest.net)
55

6-
![integration-test](https://github.com/mt-mods/technic/workflows/integration-test/badge.svg)
6+
![mtt](https://github.com/mt-mods/technic/workflows/mtt/badge.svg)
77
![luacheck](https://github.com/mt-mods/technic/workflows/luacheck/badge.svg)
88
![mineunit](https://github.com/mt-mods/technic/workflows/mineunit/badge.svg)
99
![](https://byob.yarr.is/mt-mods/technic/coverage)

docker-compose.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

technic/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ dofile(modpath.."/effects.lua")
6060
-- Chat commands
6161
dofile(modpath.."/chatcommands.lua")
6262

63-
if minetest.get_modpath("mtt") then
64-
dofile(modpath.."/integration_test.lua")
63+
if minetest.get_modpath("mtt") and mtt.enabled then
64+
dofile(modpath.."/mtt.lua")
6565
end

technic/integration_test.lua renamed to technic/mtt.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
-- check if all required nodenames are registered
3-
mtt.validate_nodenames(minetest.get_worldpath().."/registered_nodes.txt")
3+
mtt.validate_nodenames(minetest.get_modpath("technic").."/registered_nodes.txt")
44

55
-- test mapgen
66
mtt.emerge_area({x=0, y=0, z=0}, {x=48, y=48, z=48})
File renamed without changes.

0 commit comments

Comments
 (0)