-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.47 KB
/
buildOnPR.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build code on Pull request
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checking out project
uses: actions/checkout@v2
- name: Run Debug Tests
run: ./gradlew testDebugUnitTest --continue
- name: Upload Test Reports
uses: actions/upload-artifact@v2
with:
name: test-reports
path: '**/build/reports/tests/'
- name: Run Debug Lint
run: ./gradlew lintDebug
- name: Upload Lint Reports
uses: actions/upload-artifact@v2
with:
name: lint-report
path: '**/build/reports/lint-results-*'
- name: Assemble Debug
run: ./gradlew assembleDebug
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: apk
path: app/build/outputs/apk/debug/**.apk
- name: Send mail 📧
uses: dawidd6/action-send-mail@v2
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Build apks for taskie 😘
body: Build job of ${{github.repository}} completed successfully!
from: [email protected]
#attachments: '**/build/reports/tests/','**/build/reports/tests/',app/build/outputs/apk/debug/**.apk