diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1556289..6b0c2f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: test: strategy: matrix: - API_LEVEL: [ 23,22,21,19,18 ] + API_LEVEL: [ 25,24,23,22,21,19,18 ] fail-fast: false runs-on: macos-13 env: diff --git a/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs b/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs index 48bcba3..1aba88d 100644 --- a/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs +++ b/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs @@ -29,9 +29,7 @@ public class Test_IMaaController [ClassInitialize] public static void InitializeClass(TestContext context) { -#if !GITHUB_ACTIONS InitializeData(AdbControllerTypes.InputPresetMaaTouch); -#endif MaaTouchData = Data; #if !GITHUB_ACTIONS InitializeData(AdbControllerTypes.InputPresetMiniTouch); @@ -203,7 +201,11 @@ public void Interface_PressKey(MaaTypes type, IMaaController maaController, bool } [TestMethod] +#if GITHUB_ACTIONS + [MaaData(MaaTypes.All, nameof(Data), false, "")] +#else [MaaData(MaaTypes.All, nameof(Data), true, "")] +#endif [MaaData(MaaTypes.All, nameof(Data), true, "Anything")] public void Interface_InputText(MaaTypes type, IMaaController maaController, bool assertSuccess, string text) { @@ -214,15 +216,16 @@ public void Interface_InputText(MaaTypes type, IMaaController maaController, boo } [TestMethod] +#if GITHUB_ACTIONS + [MaaData(MaaTypes.All, nameof(Data), true, "com.android.settings")] +#else [MaaData(MaaTypes.All, nameof(Data), false, "com.android.settings")] +#endif [MaaData(MaaTypes.All, nameof(Data), true, "com.android.settings/.Settings")] public void Interface_StartApp_StopApp(MaaTypes type, IMaaController maaController, bool assertSuccess, string intent) { Assert.IsNotNull(maaController); Assert.IsNotNull(intent); -#if GITHUB_ACTIONS - assertSuccess = true; -#endif var job = maaController.StartApp(intent); Interface_IMaaPost(assertSuccess, job);