Skip to content

Commit

Permalink
Try adding workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Jan 29, 2024
1 parent ce09ddc commit e6c6a2d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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/"

0 comments on commit e6c6a2d

Please sign in to comment.