From 5340134f372e72bdcf615cd7c380bc6e9899b69d Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 18 Apr 2024 11:44:41 +0200 Subject: [PATCH] `mtt` action --- .github/workflows/test.yml | 14 +++++--------- docker-compose.yml | 17 ----------------- test/Dockerfile | 10 ---------- test/minetest.conf | 4 ---- test/world.mt | 9 --------- 5 files changed, 5 insertions(+), 49 deletions(-) delete mode 100644 docker-compose.yml delete mode 100644 test/Dockerfile delete mode 100644 test/minetest.conf delete mode 100644 test/world.mt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39db911..9b36ffb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,15 +6,11 @@ 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 + - uses: buckaroobanzay/mtt@main with: - fetch-depth: 0 - submodules: recursive - - name: test - run: docker-compose up --exit-code-from sut + modname: mapsync + git_dependencies: | + https://github.com/BuckarooBanzay/mtt + https://github.com/BuckarooBanzay/mtzip \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index f593a67..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: "3.6" - -services: - sut: - build: - context: ./test - args: - ENGINE_VERSION: ${ENGINE_VERSION:-5.6.0} - user: root - volumes: - - "./:/root/.minetest/worlds/world/worldmods/mapsync/" - - "world_data:/root/.minetest/worlds/world" - - "./test/world.mt:/root/.minetest/worlds/world/world.mt" - - "./test/minetest.conf:/minetest.conf" - -volumes: - world_data: {} \ No newline at end of file diff --git a/test/Dockerfile b/test/Dockerfile deleted file mode 100644 index 131afba..0000000 --- a/test/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -ARG ENGINE_VERSION=5.6.0 -FROM registry.gitlab.com/minetest/minetest/server:${ENGINE_VERSION} - -USER root -RUN apk add git &&\ - mkdir -p /root/.minetest/worlds/world/worldmods/ &&\ - git clone https://github.com/BuckarooBanzay/mtt /root/.minetest/worlds/world/worldmods/mtt &&\ - git clone https://github.com/BuckarooBanzay/mtzip /root/.minetest/worlds/world/worldmods/mtzip - -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 568bab0..0000000 --- a/test/minetest.conf +++ /dev/null @@ -1,4 +0,0 @@ -default_game = minetest_game -mg_name = v7 -mtt_enable = true -mtt_filter = mapsync \ No newline at end of file diff --git a/test/world.mt b/test/world.mt deleted file mode 100644 index c8802d5..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 = mapsync -server_announce = false