Skip to content

Commit 6b9af2c

Browse files
committed
Add CI
1 parent 8e60965 commit 6b9af2c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/android.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
uses: asadmansr/[email protected]
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 }}

gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)