-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 2.09 KB
/
pull-request.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: Pull Request
on:
pull_request:
merge_group:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within 'super-linter'
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
VALIDATE_ALL_CODEBASE: false
VALIDATE_KOTLIN: true
VALIDATE_YAML: true
VALIDATE_XML: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full git history is needed to dynamically determine the versionName from tags
fetch-depth: 0
fetch-tags: true
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Cache Gradle and wrapper
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
- name: Build Debug APK
run: ./gradlew clean assembleDebug --no-daemon
- name: Prepare keystore.properties
run: ./.github/scripts/prepare-keystore-properties.sh
env:
KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
KEYSTORE_ENCRYPTION_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_ENCRYPTION_PASSPHRASE }}
KEYSTORE_STORE_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_STORE_PASSPHRASE }}
KEYSTORE_ALIAS: ${{ secrets.RELEASE_KEYSTORE_ALIAS }}
KEYSTORE_ALIAS_PASSPHRASE: ${{ secrets.RELEASE_KEYSTORE_ALIAS_PASSPHRASE }}
- name: Build Release APK
run: ./gradlew clean assembleRelease --no-daemon
- name: Upload outputs artifact
uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs/
retention-days: 3