Let `LuaTests` run in CI

This commit is contained in:
YoshiRulz 2025-04-23 03:07:40 +10:00
parent 164a89aaf6
commit 77b4507ad3
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 4 additions and 5 deletions

View File

@ -42,6 +42,9 @@ jobs:
with:
dotnet-version: "8"
- uses: ilammy/msvc-dev-cmd@v1 # required by leafo/gh-actions-lua on Windows, no-op on Linux
- uses: leafo/gh-actions-lua@v11
- name: Test
run: dotnet test BizHawk.sln -c Release -p:ContinuousIntegrationBuild=true
shell: pwsh

View File

@ -201,6 +201,7 @@ run_tests:
- job: build_asms_release
artifacts: false
script:
- apt-get update && apt-get install liblua5.4-0
- Dist/BuildTestRelease.sh -v normal -p:TestProjTargetFrameworkOverride=net8.0
stage: test

View File

@ -8,13 +8,8 @@ using BizHawk.Client.Common;
namespace BizHawk.Tests.Client.Common.Lua
{
#if SKIP_PLATFORM_TESTS
#pragma warning disable MSTEST0004 // missing `[TestClass]`
#pragma warning disable MSTEST0030 // ditto
#else
[DoNotParallelize]
[TestClass]
#endif
public class LuaTests
{
private static readonly NLua.Lua LuaInstance = new();