-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1.13 KB
/
test-and-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: test-and-build
env:
# The name of the main module repository
main_project_module: app
on:
pull_request:
branches: [master, develop]
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:
jobs:
test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'
- name: Change wrapper permissions
run: chmod +x ./gradlew
# Run ktlint checks
- name: Run ktlint checks
run: ./gradlew ktlintCheck
# Run Build Project
- name: Build gradle project
run: ./gradlew build
# Create Bundle AAB Release
# Noted for main module build [main_project_module]:bundleRelease
- name: Build app bundle release
run: ./gradlew ${{ env.main_project_module }}:bundleRelease