From 55cf79c79de50a6b7a2dac2fb082bcf753a1b20c Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 23 Apr 2024 10:53:05 +0200 Subject: [PATCH] use `mtt` action --- .github/workflows/test.yml | 12 ++++-------- docker-compose.yml | 17 ----------------- test/Dockerfile | 9 --------- test/minetest.conf | 6 ------ test/world.mt | 9 --------- 5 files changed, 4 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 5b675b6..0032b3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,12 +6,8 @@ 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - - name: test - run: docker-compose up --exit-code-from sut + - uses: actions/checkout@v2 + - uses: buckaroobanzay/mtt@main + with: + modname: mtui diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 0c74b75..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.1} - user: root - volumes: - - "./:/root/.minetest/worlds/world/worldmods/mtui/" - - "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 632380e..0000000 --- a/test/Dockerfile +++ /dev/null @@ -1,9 +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/ &&\ - git clone https://github.com/BuckarooBanzay/mtt /root/.minetest/worlds/world/worldmods/mtt - -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 076345c..0000000 --- a/test/minetest.conf +++ /dev/null @@ -1,6 +0,0 @@ -default_game = minetest_game -mg_name = v7 -mtt_enable = true -mtt_filter = mtui -secure.http_mods = mtui -mtui.key = test \ No newline at end of file diff --git a/test/world.mt b/test/world.mt deleted file mode 100644 index 0bca75c..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 = mtui -server_announce = false