Skip to content

Commit

Permalink
Add workflow to ensure the game does not crash
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Jan 29, 2024
1 parent ce09ddc commit 70caa8c
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 6 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copied from https://github.com/mt-mods/dreambuilder_game

name: test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
ENGINE_IMAGE:
- registry.gitlab.com/minetest/minetest/server:5.7.0
- ghcr.io/minetest-hosting/minetest-docker:5.8.0
- ""

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- uses: actions/checkout@v4
with:
repository: minetest/minetest_game
ref: "5.7.0"
path: .REPOS/minetest_game

- uses: actions/checkout@v4
with:
repository: BuckarooBanzay/mtt
path: mtt

- uses: actions/checkout@v4
with:
repository: BlockySurvival/bls_test_nodenames
path: bls_test_nodenames

- name: Update minetest.conf and world.mt
run: |-
echo 'load_mod_mtt = true' >> world.mt
echo 'load_mod_bls_test_nodenames = true' >> world.mt
echo 'mtt_enable = true' >> minetest.conf
echo 'mtt_export_nodenames = true' >> minetest.conf
touch nodenames.txt
- name: test
run: docker-compose up --exit-code-from testserver

- name: Upload nodenames.txt
if: ${{ endsWith(matrix.ENGINE_IMAGE, '5.7.0') }}
uses: actions/upload-artifact@v4
with:
name: nodenames
path: nodenames.txt
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copied from https://github.com/mt-mods/dreambuilder_game

version: "3.6"

services:
testserver:
image: ${ENGINE_IMAGE:-ghcr.io/minetest-hosting/minetest-docker:5.8.0}

entrypoint: "minetestserver --config /minetest.conf"
user: root
volumes:
- "./:/root/.minetest/mods/"
- "./world.mt:/root/.minetest/worlds/world/world.mt"
- "./minetest.conf:/minetest.conf"
- "./.REPOS/minetest_game/:/root/.minetest/games/minetest_game/"
- "world:/root/.minetest/worlds/world"
- "./nodenames.txt:/root/.minetest/worlds/world/nodenames.txt"


volumes:
world: {}
9 changes: 3 additions & 6 deletions world.mt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ load_mod_armor_wood = true
load_mod_artdeco = true
load_mod_baldcypress = true
load_mod_bamboo = true
load_mod_baobab = true
load_mod_basic_materials = true
load_mod_bbq = true
load_mod_bigdoors = true
Expand All @@ -52,7 +51,6 @@ load_mod_chestnuttree = true
load_mod_chesttools = true
load_mod_clementinetree = true
load_mod_cloaking = true
load_mod_computer = true
load_mod_computers = true
load_mod_config = true
load_mod_controls = true
Expand Down Expand Up @@ -141,7 +139,6 @@ load_mod_jacaranda = true
load_mod_jails = true
load_mod_larch = true
load_mod_lavalamp = true
load_mod_lazerstrike = true
load_mod_lemontree = true
load_mod_letters = true
load_mod_lib_chatcmdbuilder = true
Expand Down Expand Up @@ -285,7 +282,7 @@ load_mod_sound_api = true
load_mod_soundblocks = true
load_mod_spawn_command = true
load_mod_sponge = true
load_mod_staff = true
load_mod_staff = false
load_mod_stamina = true
load_mod_steles = true
load_mod_streetlamps = true
Expand All @@ -309,8 +306,8 @@ load_mod_unified_inventory = true
load_mod_unified_inventory_plus = true
load_mod_unifiedbricks = true
load_mod_unifieddyes = true
load_mod_verbana = true
load_mod_verbana_gui = true
load_mod_verbana = false
load_mod_verbana_gui = false
load_mod_vines = true
load_mod_visible_sneak = true
load_mod_waterfalls = true
Expand Down

0 comments on commit 70caa8c

Please sign in to comment.