diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c9e875..bd94a48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,13 @@ on: jobs: test: + strategy: + matrix: + API_LEVEL: [ 15,16,17,18,19,21,22,23 ] + fail-fast: false runs-on: macos-13 env: - API_LEVEL: 29 + API_LEVEL: 15 NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages # NuGet CLI environment variables steps: @@ -47,13 +51,13 @@ jobs: path: | ~/.android/avd/* ~/.android/adb* - key: avd-${{ env.API_LEVEL }} + key: avd-${{ matrix.API_LEVEL }} - name: Create AVD and generate snapshot for caching if: ${{ !steps.avd-cache.outputs.cache-hit }} uses: reactivecircus/android-emulator-runner@v2 with: - api-level: ${{ env.API_LEVEL }} + api-level: ${{ matrix.API_LEVEL }} force-avd-creation: false emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -no-metrics -camera-back none disable-animations: false @@ -65,17 +69,8 @@ jobs: AdbPath: adb Address: emulator-5554 with: - api-level: ${{ env.API_LEVEL }} + api-level: ${{ matrix.API_LEVEL }} force-avd-creation: false emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -no-metrics -camera-back none -no-snapshot-save disable-animations: true script: dotnet test --no-build --logger trx --verbosity normal - - - name: Upload TestResults - uses: actions/upload-artifact@v4 - if: always() - with: - name: TestResults - path: | - ./**/TestResults - ./src/MaaFramework.Binding.UnitTests/bin/**/debug