Skip to content

Commit f39b825

Browse files
authored
Merge pull request #3 from DilanGoodwin/automaticTesting
GitHub Actions Testing for Android Tests on push and pull to main
2 parents c7aa05e + 1fab1d9 commit f39b825

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Android Automatic Testing
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '21'
18+
distribution: 'adopt'
19+
cache: gradle
20+
- name: Grant execute permission for gradlew
21+
run: chmod +x gradlew
22+
- name: Build with Gradle
23+
run: ./gradlew build
24+
25+
unitTest:
26+
name: Unit Testing
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Setup JVM
33+
uses: actions/setup-java@v4
34+
with:
35+
java-version: '21'
36+
distribution: 'adopt'
37+
38+
- name: Unit Testing
39+
run: ./gradlew test

0 commit comments

Comments
 (0)