Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 6e009c3

Browse files
authored
Added auto unit-tests to ci
1 parent 0831b00 commit 6e009c3

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/android.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ on:
77
branches: [ "main", "dev" ]
88

99
jobs:
10-
build:
1110

11+
unit-test:
1212
runs-on: ubuntu-latest
13-
1413
steps:
1514
- uses: actions/checkout@v3
1615
- name: set up JDK 17
@@ -21,6 +20,23 @@ jobs:
2120
cache: gradle
2221

2322
- name: Grant execute permission for gradlew
24-
run: chmod +x gradlew
23+
run: chmod +x gradlew
24+
- name: Run tests
25+
run: ./gradlew test
26+
27+
28+
build:
29+
needs: [unit-test]
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: set up JDK 17
35+
uses: actions/setup-java@v3
36+
with:
37+
java-version: '17'
38+
distribution: 'temurin'
39+
cache: gradle
40+
2541
- name: Build with Gradle
2642
run: ./gradlew build

0 commit comments

Comments
 (0)