File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Android CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ test :
13
+ runs-on : macos-latest
14
+ steps :
15
+ - name : checkout
16
+ uses : actions/checkout@v2
17
+
18
+ - name : run tests
19
+ uses : reactivecircus/android-emulator-runner@v2
20
+ with :
21
+ api-level : 29
22
+ script : ./gradlew connectedCheck
23
+ - name : Publish Unit Test Results
24
+
25
+ if : ${{ always() }}
26
+ - name : Generate coverage report
27
+ run : ./gradlew jacocoTestReport
28
+ - name : SonarCloud Scan
29
+ run : ./gradlew sonarqube -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=simonpoole-github --info
30
+ env :
31
+ # Needed to get some information about the pull request, if any
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ # SonarCloud access token should be generated from https://sonarcloud.io/account/security/
34
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments