2023-06-11 16:08:55 +02:00
|
|
|
name: "Test"
|
2021-09-20 23:00:21 +02:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-03-25 17:11:00 +01:00
|
|
|
name: "Unit Tests ${{ matrix.cfg.image }}"
|
2021-09-20 23:00:21 +02:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-25 17:11:00 +01:00
|
|
|
timeout-minutes: 5
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
cfg:
|
|
|
|
- { image: 'registry.gitlab.com/minetest/minetest/server:5.5.1', mtg: false }
|
|
|
|
- { image: '', mtg: true } # latest mater
|
2021-09-20 23:00:21 +02:00
|
|
|
steps:
|
2024-03-25 16:48:09 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: 'minetest/minetest_game'
|
|
|
|
path: minetest_game
|
2024-03-25 17:11:00 +01:00
|
|
|
if: ${{ matrix.cfg.mtg }}
|
2024-03-25 16:48:09 +01:00
|
|
|
|
2021-09-20 23:00:21 +02:00
|
|
|
- name: Run tests
|
2024-03-25 16:48:09 +01:00
|
|
|
run: ./.util/run_tests.sh --docker
|
2024-03-25 17:11:00 +01:00
|
|
|
env:
|
|
|
|
DOCKER_IMAGE: "${{ matrix.cfg.image }}"
|