-
Notifications
You must be signed in to change notification settings - Fork 274
101 lines (94 loc) · 2.87 KB
/
build-and-test.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Build and test
on:
push:
branches:
- develop
- main
- v4
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
debug_build:
name: Debug build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
- name: Build
run: ./gradlew assembleDebug :stream-chat-android-ui-uitests:assembleDebugAndroidTest
release_build:
name: Release build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
- name: Build
run: ./gradlew assembleRelease
tests:
name: Tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
- name: Unit tests
run: ./scripts/ci-unit-tests.sh
- name: Upload testDebugUnitTest results
uses: actions/[email protected]
if: failure()
with:
name: testDebugUnitTest
path: ./**/build/reports/tests/testDebugUnitTest
size_check_xml:
name: Size Check XML
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
- name: build demo debug
run: ./gradlew stream-chat-android-ui-components-sample:assembleDemoDebug
- name: Upload artifact to Emerge
uses: EmergeTools/[email protected]
with:
artifact_path: ./stream-chat-android-ui-components-sample/build/outputs/apk/demo/debug/stream-chat-android-ui-components-sample-demo-debug.apk
emerge_api_key: ${{ secrets.EMERGE_TOOLS_API_KEY }}
build_type: debug
size_check_compose:
name: Size Check Compose
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt
java-version: 11
- name: build debug
run: ./gradlew stream-chat-android-compose-sample:assembleDebug
- name: Upload artifact to Emerge
uses: EmergeTools/[email protected]
with:
artifact_path: ./stream-chat-android-compose-sample/build/outputs/apk/debug/stream-chat-android-compose-sample-debug.apk
emerge_api_key: ${{ secrets.EMERGE_TOOLS_API_KEY }}
build_type: debug