Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Aug 7, 2024
1 parent aaa2d34 commit f63da1b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit f63da1b

Please sign in to comment.