Skip to content

Commit e08338b

Browse files
committed
feat: add .yml file to run unit tests in GitHub Actions
1 parent 349715c commit e08338b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Android Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
28+
- name: Build with Gradle
29+
run: ./gradlew assembleDebug
30+
31+
- name: Run tests
32+
run: ./gradlew test

0 commit comments

Comments
 (0)