From a8f932aa22a54cad87d9a7e135cc7b50141b1436 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 9 May 2020 21:02:19 +0200 Subject: [PATCH] also test with latest minetest version --- .github/workflows/integration-test-latest.yml | 14 ++++++++++++++ .github/workflows/integration-test.yml | 2 +- integration-test.sh | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/integration-test-latest.yml diff --git a/.github/workflows/integration-test-latest.yml b/.github/workflows/integration-test-latest.yml new file mode 100644 index 0000000..02fe6dd --- /dev/null +++ b/.github/workflows/integration-test-latest.yml @@ -0,0 +1,14 @@ +name: integration-test + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: test + run: MINETEST_VERSION=latest ./integration-test.sh diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 5c4e6cd..4920a29 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -11,4 +11,4 @@ jobs: - uses: actions/checkout@v1 - name: test - run: ./integration-test.sh + run: MINETEST_VERSION=5.2.0 ./integration-test.sh diff --git a/integration-test.sh b/integration-test.sh index 1214fd2..86ef0b1 100755 --- a/integration-test.sh +++ b/integration-test.sh @@ -21,6 +21,6 @@ docker run --rm -i \ -v ${CFG}:/etc/minetest/minetest.conf:ro \ -v ${MTDIR}:/var/lib/minetest/.minetest \ -v $(pwd):/var/lib/minetest/.minetest/worlds/world/worldmods/technic \ - registry.gitlab.com/minetest/minetest/server:5.2.0 + registry.gitlab.com/minetest/minetest/server:${MINETEST_VERSION} test -f ${WORLDDIR}/integration_test.json && exit 0 || exit 1