-
-
Notifications
You must be signed in to change notification settings - Fork 73
41 lines (33 loc) · 909 Bytes
/
pr-check.yaml
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
name: PR Check
on:
pull_request:
branches: [ master ]
paths-ignore:
- 'fastlane/**'
- '.github/**'
- 'icons/**'
- 'images/**'
- 'scripts/**'
- 'whatsnew/**'
- '**.md'
- '**.MD'
jobs:
validate-pr:
name: 'Spotless, Tests and Build Production Debug Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up project
uses: ./.github/actions/setup
- name: 🛠 Build Project with Spotless Check
run: ./gradlew spotlessCheck
- name: 🧪 Run Tests
run: ./gradlew test
- name: 🏗 Build APK
run: bash ./gradlew assembleFreeDebug
- name: 🚀 Upload APK to Artifacts 📱
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/free/debug/*.apk
retention-days: 3