Run UI tests on macos runners

This commit is contained in:
Kirill Kamakin
2022-12-17 11:46:56 +01:00
parent 67bd83bf44
commit d0d3d2a144

View File

@@ -18,17 +18,35 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Run tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew allDevicesCheck check coverageReport sonar --no-configuration-cache --no-daemon -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
run: ./gradlew check coverageReport sonar --no-configuration-cache --no-daemon
- name: Publish test reports
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: './**/build/test-results/**/TEST-*.xml'
uiTests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Run tests
run: ./gradlew allDevicesCheck --no-daemon -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"