From dd9ab16401c768f388909695f18da40974b2b69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 22 May 2023 21:44:15 +0200 Subject: [PATCH] Run unit tests on Linux. --- .github/workflows/ci.yml | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebaa71fb8..dc8fd17116 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: - name: Check Code run: | make check + make tests - name: Check Mods run: | diff --git a/Makefile b/Makefile index 08cb021376..acfa25f433 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,11 @@ test: all @echo "Testing Red Alert mod MiniYAML..." @./utility.sh ra --check-yaml +tests: + @dotnet build OpenRA.Test/OpenRA.Test.csproj -c Debug --nologo -p:TargetPlatform=$(TARGETPLATFORM) + @echo + @dotnet test bin/OpenRA.Test.dll --test-adapter-path:. + ############# LOCAL INSTALLATION AND DOWNSTREAM PACKAGING ############## # version: VERSION mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml