diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2561f63 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +# 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 + + - name: test + run: docker-compose up --exit-code-from testserver diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a770ff3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +# Copied from https://github.com/mt-mods/dreambuilder_game + +version: "3.6" + +services: + test: + image: ${ENGINE_IMAGE:-ghcr.io/minetest-hosting/minetest-docker:main} + + entrypoint: "minetestserver --config /minetest.conf" + user: root + volumes: + - "./:/root/.minetest/mods/bls_mods/" + - "./world.mt:/root/.minetest/worlds/world/world.mt" + - "./minetest.conf:/root/.minetest/minetest.conf" + - "./.REPOS/minetest_game/:/root/.minetest/games/minetest_game/"