forked from horizontalsystems/unstoppable-wallet-android
-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (35 loc) · 1.25 KB
/
Copy pathci-pull-request.yml
File metadata and controls
35 lines (35 loc) · 1.25 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
name: Android CI
on:
push:
branches:
- master
- "feature/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Unit tests
run: ./gradlew :app:testDebugUnitTest :core:core:testDebugUnitTest :core:wallet:testDebugUnitTest :feature-premium:testDebugUnitTest :feature-logging:testDebugUnitTest :feature-trezor:testDebugUnitTest :feature-tangem:testDebugUnitTest
- name: Build with Gradle
run: ./gradlew assembleDebug
env:
BUILD_NUMBER: ${{ github.run_number }}
- name: Upload to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
file: app/build/outputs/apk/debug/app-debug.apk
groups: testers
releaseNotes: |
Branch: ${{ github.ref_name }}
Commit: ${{ github.event.head_commit.message }}