Run UI tests on macos runners
This commit is contained in:
26
.github/workflows/check.yml
vendored
26
.github/workflows/check.yml
vendored
@@ -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"
|
||||
Reference in New Issue
Block a user