Avoid multiple ConnectUser invocations by sharing the Call
(#5439)
#3172
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
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 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- 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 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- 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 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- 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 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- 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 17 | |
uses: actions/[email protected] | |
with: | |
distribution: adopt | |
java-version: 17 | |
- 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 |