Skip to content

Commit

Permalink
use mtt action for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 21, 2024
1 parent ad2c11e commit 8ea38b8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 71 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/integration-test.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test
on: [push, pull_request]
jobs:
test:
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
- uses: coverallsapp/github-action@v1
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)
![integration-test](https://github.com/mt-mods/technic/workflows/test/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.

File renamed without changes.
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

0 comments on commit 8ea38b8

Please sign in to comment.