Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use mtt action for integration tests #361

Merged
merged 4 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/integration-test.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/test.yml
BuckarooBanzay marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
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.

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.
Loading