File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 1111 echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV
1212 echo "DOTNET_NOLOGO=1" >> $GITHUB_ENV
1313
14+ # Needed for Android SDK setup step
15+ - uses : actions/setup-java@v3
16+ with :
17+ distribution : ' temurin'
18+ java-version : ' 17'
19+
20+ - name : Setup Android SDK
21+ uses : android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0
22+
1423 - name : Set Java Version
1524 uses : actions/setup-java@v3
1625 with :
Original file line number Diff line number Diff line change @@ -180,6 +180,15 @@ jobs:
180180 with :
181181 dotnet-version : 8.0.x
182182
183+ # Needed for Android SDK setup step
184+ - uses : actions/setup-java@v3
185+ with :
186+ distribution : ' temurin'
187+ java-version : ' 17'
188+
189+ - name : Setup Android SDK
190+ uses : android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0
191+
183192 - run : dotnet workload install android maui-android
184193
185194 - name : Test
Original file line number Diff line number Diff line change 2525 with :
2626 submodules : recursive
2727
28- - name : Set Java Version
29- uses : actions/setup-java@v4
30- with :
31- distribution : " temurin"
32- java-version : " 11"
33-
3428 - name : Setup Environment
3529 uses : ./.github/actions/environment
3630
Original file line number Diff line number Diff line change 99)
1010
1111Set-StrictMode - Version latest
12- $ErrorActionPreference = " Stop"
12+ $ErrorActionPreference = ' Stop'
1313
1414if (! $Build -and ! $Run )
1515{
5050 dotnet build -f $tfm - c Release test/ Sentry.Maui.Device.TestApp
5151 if ($LASTEXITCODE -ne 0 )
5252 {
53- throw " Failed to build Sentry.Maui.Device.TestApp"
53+ throw ' Failed to build Sentry.Maui.Device.TestApp'
5454 }
5555 }
5656
5959 if (! (Get-Command xharness - ErrorAction SilentlyContinue))
6060 {
6161 Push-Location ($CI ? $env: RUNNER_TEMP : $IsWindows ? $env: TMP : $IsMacos ? $env: TMPDIR : ' /temp' )
62- dotnet tool install Microsoft.DotNet.XHarness.CLI -- global -- version " 1.*-*" `
62+ dotnet tool install Microsoft.DotNet.XHarness.CLI -- global -- version ' 1.*-*' `
6363 -- add-source https:// pkgs.dev.azure.com / dnceng/ public/ _packaging/ dotnet- eng/ nuget/ v3/ index.json
6464 Pop-Location
6565 }
7070 xharness $group test $arguments -- output- directory= test_output
7171 if ($LASTEXITCODE -ne 0 )
7272 {
73- throw " xharness run failed with non-zero exit code"
73+ throw ' xharness run failed with non-zero exit code'
7474 }
7575 }
7676 finally
You can’t perform that action at this time.
0 commit comments