6 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
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: testFocusDebugUnitTest
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
110 if: github.event.pull_request.head.repo.full_name != github.repository && github.actor != 'MickeyMoz'
116 target: [google_apis]
119 uses: actions/checkout@v2
120 - name: Run subset of UI Tests
121 uses: reactivecircus/android-emulator-runner@v2
123 api-level: ${{ matrix.api-level }}
124 target: ${{ matrix.target }}
128 "JAVA_HOME=$JAVA_HOME_11_X64 && ./gradlew connectedFocusDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=\
129 org.mozilla.focus.activity.ThreeDotMainMenuTest#browserMenuItemsTest"
130 - name: Upload Test Artifacts
131 uses: actions/upload-artifact@v2
134 path: app/build/reports