Skip to content

Commit 4310683

Browse files
committed
automaticTesting 001: Created GitHub actions workflow for automatic building & testing of application on push/pull to main
1 parent 74cd791 commit 4310683

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Android UI Tests
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+
21+
test:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: set up JDK
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '21'
30+
distribution: 'adopt'
31+
cache: gradle
32+
- name: Grant execute permission for gradlew
33+
run: chmod +x gradlew
34+
- name: Build with Gradle
35+
run: ./gradlew build
36+
37+
test:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: set up JDK
43+
uses: actions/setup-java@v4
44+
with:
45+
java-version: '21'
46+
distribution: 'adopt'
47+
cache: gradle
48+
- name: Grant execute permission for gradlew
49+
run: chmod +x gradlew
50+
- name: Build with Gradle
51+
run: ./gradlew assembleUnitTest

0 commit comments

Comments
 (0)