Skip to content

Commit

Permalink
docker cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 24, 2024
1 parent a5c49d9 commit 177d8da
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 107 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/coverage.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/test-action.yml

This file was deleted.

21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: test

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
ENGINE_VERSION: [5.3.0, 5.4.0, 5.5.0, 5.6.0, latest]

steps:
- uses: actions/checkout@v2
- name: test
run: docker-compose up --exit-code-from sut
- uses: ./
with:
modname: mtt
enable_coverage: "true"
enable_benchmarks: true
git_dependencies: |
https://github.com/BuckarooBanzay/promise
additional_config: |
mtt_enable_selftest = true
- name: Coveralls
uses: coverallsapp/github-action@v1
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,6 @@ All parameters:
* `git_game_repo` url to the game (defaults to the minetest_game)
* `mapgen` the mapgen t use (default so singlenode)

# Using with "raw" docker

For a CI example with docker you can take a look at the code from the `mtzip` mod:

Repository: https://github.com/BuckarooBanzay/mtzip

The important files:
* `mtt.lua` the tests, those could alternatively be inlined with the main code
* `docker-compose.yml` the compose file that starts the minetest engine with `docker-compose up`
* `.github/workflows/test.yml` the github workflow file with a version matrix
* `test/minetest.conf` the server config for the test-mod
* `test/Dockerfile` dockerfile that pulls in test-dependencies including the `mtt` mod from the `master` branch

The whole testing can of course also be done without any docker tools.

# Related work

* https://github.com/S-S-X/mineunit unit test framework
Expand Down
17 changes: 0 additions & 17 deletions docker-compose.yml

This file was deleted.

13 changes: 0 additions & 13 deletions test/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions test/minetest.conf

This file was deleted.

9 changes: 0 additions & 9 deletions test/world.mt

This file was deleted.

0 comments on commit 177d8da

Please sign in to comment.