Skip to content

Commit ccef88f

Browse files
committed
refactor: modify set up JDK and Gradle steps from android-unit-tests.yml
1 parent e08338b commit ccef88f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/android-unit-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- "*"
1010

1111
jobs:
12+
name: Unit Tests
1213
build:
1314
runs-on: ubuntu-latest
1415

@@ -17,16 +18,16 @@ jobs:
1718
uses: actions/checkout@v2
1819

1920
- name: Set up JDK 17
20-
uses: actions/setup-java@v2
21+
uses: actions/setup-java@v4
2122
with:
2223
java-version: '17'
2324
distribution: 'temurin'
2425

25-
- name: Grant execute permission for gradlew
26-
run: chmod +x gradlew
26+
- name: Set up Gradle
27+
uses: gradle/actions/setup-gradle@v4
2728

2829
- name: Build with Gradle
2930
run: ./gradlew assembleDebug
3031

3132
- name: Run tests
32-
run: ./gradlew test
33+
run: ./gradlew testDebugUnitTest

0 commit comments

Comments
 (0)