8 - name: Checkout repository
9 uses: actions/checkout@v2
11 uses: actions/setup-java@v1
14 - name: "Clean & Assemble Debug"
15 uses: eskatos/gradle-command-action@v1
17 wrapper-cache-enabled: true
18 dependencies-cache-enabled: true
19 configuration-cache-enabled: true
20 arguments: clean app:assembleDebug
22 run-testDebugUnitTest:
24 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
27 - name: Checkout repository
28 uses: actions/checkout@v2
30 uses: actions/setup-java@v1
33 - name: "Test Debug Unit Tests"
34 uses: eskatos/gradle-command-action@v1
36 wrapper-cache-enabled: true
37 dependencies-cache-enabled: true
38 configuration-cache-enabled: true
39 arguments: testDebugUnitTest
43 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
46 - name: Checkout repository
47 uses: actions/checkout@v2
49 uses: actions/setup-java@v1
53 uses: eskatos/gradle-command-action@v1
55 wrapper-cache-enabled: true
56 dependencies-cache-enabled: true
57 configuration-cache-enabled: true
59 - name: Archive detekt results
60 uses: actions/upload-artifact@v2
63 path: build/reports/detekt.html
67 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
70 - name: Checkout repository
71 uses: actions/checkout@v2
73 uses: actions/setup-java@v1
77 uses: eskatos/gradle-command-action@v1
79 wrapper-cache-enabled: true
80 dependencies-cache-enabled: true
81 configuration-cache-enabled: true
86 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
89 - name: Checkout repository
90 uses: actions/checkout@v2
92 uses: actions/setup-java@v1
96 uses: eskatos/gradle-command-action@v1
98 wrapper-cache-enabled: true
99 dependencies-cache-enabled: true
100 configuration-cache-enabled: true
102 - name: Archive lint results
103 uses: actions/upload-artifact@v2
105 name: lintDebug report
106 path: app/build/reports/lint-results-debug.html
115 target: [google_apis]
118 uses: actions/checkout@v2
119 - name: Run subset of UI Tests
120 uses: reactivecircus/android-emulator-runner@v2.21.0
122 api-level: ${{ matrix.api-level }}
123 target: ${{ matrix.target }}
127 "JAVA_HOME=$JAVA_HOME_11_X64 && ./gradlew connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=\
128 org.mozilla.fenix.ui.NavigationToolbarTest#visitURLTest"
129 - name: Upload Test Artifacts
130 uses: actions/upload-artifact@v2
133 path: app/build/reports