From d0d3d2a144075c8d007fd437fc2a759316e9795c Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sat, 17 Dec 2022 11:46:56 +0100 Subject: [PATCH] Run UI tests on macos runners --- .github/workflows/check.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 9c298c0..3557006 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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' \ No newline at end of file + 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" \ No newline at end of file