-
-
Notifications
You must be signed in to change notification settings - Fork 24
67 lines (52 loc) · 1.56 KB
/
pr-check.yml
File metadata and controls
67 lines (52 loc) · 1.56 KB
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
name: PR Check
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'fastlane/**'
- '.github/**'
- 'icons/**'
- 'images/**'
- 'scripts/**'
- 'whatsnew/**'
- '**.md'
- '**.MD'
# If two events are triggered within a short time in the same PR, cancel the run of the oldest event
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
validate-pr:
name: 'Tests and Build Production Debug Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'jetbrains'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Lint Check
run: bash ./gradlew lintKotlin
- name: 🏗 Disable Firebase
run: |
bash ./scripts/enableDisableFirebase.sh false
- name: 🏗 Build Github APK
run: bash ./gradlew assembleGithubDebug
- name: 🏗 Enable Firebase
run: |
bash ./scripts/enableDisableFirebase.sh true
- name: 🏗 Build Free Play store APK
run: bash ./gradlew assembleFreeDebug
- name: 🏗 Build Pro APK
run: bash ./gradlew assembleProDebug
- name: 🚀 Upload APK to Artifacts 📱
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/github/debug/*.apk
retention-days: 3