mtt action

This commit is contained in:
BuckarooBanzay 2024-04-28 20:16:10 +02:00
parent 5de9594201
commit e93725d0b4
5 changed files with 8 additions and 57 deletions

View File

@ -1,17 +1,15 @@
name: test name: test
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: build:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: test - uses: buckaroobanzay/mtt@main
run: docker-compose up --exit-code-from sut 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

View File

@ -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: {}

View File

@ -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

View File

@ -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

View File

@ -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