diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dd425c8..862e4a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,17 +1,15 @@ name: test - on: [push, pull_request] - jobs: build: - runs-on: ubuntu-latest - timeout-minutes: 10 - strategy: - matrix: - ENGINE_VERSION: [5.3.0, 5.4.0, 5.5.0, 5.6.1, latest] - steps: - uses: actions/checkout@v2 - - name: test - run: docker-compose up --exit-code-from sut + - uses: buckaroobanzay/mtt@main + with: + git_dependencies: | + https://github.com/BuckarooBanzay/mtzip.git + https://github.com/BuckarooBanzay/promise.git + https://github.com/BuckarooBanzay/mapblock_lib.git + additional_config: | + building_lib.enable_example_buildings = true \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 5606c50..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,19 +0,0 @@ -version: "3.6" - -services: - sut: - build: - context: ./test - args: - ENGINE_VERSION: ${ENGINE_VERSION:-5.5.0} - user: root - volumes: - - "./:/root/.minetest/worlds/world/worldmods/building_lib/" - - "world_data:/root/.minetest/worlds/world" - - "./test/world.mt:/root/.minetest/worlds/world/world.mt" - - "./test/minetest.conf:/minetest.conf" - ports: - - "30000:30000/udp" - -volumes: - world_data: {} \ No newline at end of file diff --git a/test/Dockerfile b/test/Dockerfile deleted file mode 100644 index 080d30d..0000000 --- a/test/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -ARG ENGINE_VERSION=5.6.1 -FROM registry.gitlab.com/minetest/minetest/server:${ENGINE_VERSION} - -USER root -RUN apk add git &&\ - mkdir -p /root/.minetest/worlds/world/worldmods/ &&\ - cd /root/.minetest/worlds/world/worldmods &&\ - git clone https://github.com/BuckarooBanzay/mtt &&\ - git clone https://github.com/BuckarooBanzay/mtzip &&\ - git clone https://github.com/BuckarooBanzay/promise &&\ - git clone https://github.com/BuckarooBanzay/mapblock_lib - -ENTRYPOINT minetestserver --config /minetest.conf \ No newline at end of file diff --git a/test/minetest.conf b/test/minetest.conf deleted file mode 100644 index f658b43..0000000 --- a/test/minetest.conf +++ /dev/null @@ -1,6 +0,0 @@ -default_game = minetest_game -mg_name = v7 -mtt_enable = true -mtt_enable_benchmarks = true -mtt_filter = building_lib -building_lib.enable_example_buildings = true \ No newline at end of file diff --git a/test/world.mt b/test/world.mt deleted file mode 100644 index 6ae5eb0..0000000 --- a/test/world.mt +++ /dev/null @@ -1,9 +0,0 @@ -enable_damage = false -creative_mode = true -mod_storage_backend = sqlite3 -auth_backend = sqlite3 -player_backend = dummy -backend = dummy -gameid = minetest -world_name = building_lib -server_announce = false