Skip to content

Commit

Permalink
use mtt action for integration tests (#361)
Browse files Browse the repository at this point in the history
Co-authored-by: BuckarooBanzay <[email protected]>
  • Loading branch information
BuckarooBanzay and BuckarooBanzay authored Apr 26, 2024
1 parent ad2c11e commit 814ebd7
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 71 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/integration-test.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/mtt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: mtt
on: [push, pull_request]
jobs:
mtt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: buckaroobanzay/mtt@main
with:
modname: technic
git_dependencies: |
https://github.com/mt-mods/basic_materials.git
https://github.com/mt-mods/pipeworks.git
https://github.com/minetest-mods/moreores.git
https://github.com/mt-mods/xcompat.git
17 changes: 0 additions & 17 deletions .test/Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions .test/minetest.conf

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Technic

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

![integration-test](https://github.com/mt-mods/technic/workflows/integration-test/badge.svg)
![mtt](https://github.com/mt-mods/technic/workflows/mtt/badge.svg)
![luacheck](https://github.com/mt-mods/technic/workflows/luacheck/badge.svg)
![mineunit](https://github.com/mt-mods/technic/workflows/mineunit/badge.svg)
![](https://byob.yarr.is/mt-mods/technic/coverage)
Expand Down
21 changes: 0 additions & 21 deletions docker-compose.yml

This file was deleted.

4 changes: 2 additions & 2 deletions technic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ dofile(modpath.."/effects.lua")
-- Chat commands
dofile(modpath.."/chatcommands.lua")

if minetest.get_modpath("mtt") then
dofile(modpath.."/integration_test.lua")
if minetest.get_modpath("mtt") and mtt.enabled then
dofile(modpath.."/mtt.lua")
end
2 changes: 1 addition & 1 deletion technic/integration_test.lua → technic/mtt.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

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

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

0 comments on commit 814ebd7

Please sign in to comment.