Skip to content

Commit 2f7b2f4

Browse files
Merge pull request #624 from opensrp/add-github-actions
Adding the GitHub Actions
2 parents a9a7d4f + 73a59af commit 2f7b2f4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Android CI with Gradle
2+
3+
on:
4+
push:
5+
branches: [ master develop]
6+
pull_request:
7+
branches: [ master develop]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: set up JDK 1.8
17+
uses: actions/setup-java@v2
18+
with:
19+
java-version: 1.8
20+
- name: Print Java version
21+
run: java -version
22+
- name: Grant execute permission for gradlew
23+
run: chmod +x gradlew
24+
- name: Run unit tests with Gradle
25+
run: ./gradlew opensrp-anc:clean opensrp-anc:jacocoTestReport --stacktrace
26+
- name: Generate Javadoc with Gradle
27+
run: ./gradlew javadoc
28+
- name: Upload coverage to Coveralls with Gradle
29+
run: ./gradlew opensrp-anc:coveralls --stacktrace
30+
31+
env:
32+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

0 commit comments

Comments
 (0)