test #3201
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 | |
- ci/test-workflow # FIXME | |
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 | |
tests_e2e: | |
name: E2E 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: Mock Server | |
uses: ./.github/actions/run-mock-server | |
with: | |
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }} | |
- name: Tests | |
run: ./gradlew :stream-chat-android-compose-sample:connectedE2eDebugAndroidTest | |
- run: ls ./**/build/reports/tests # FIXME | |
- name: Upload test results | |
uses: actions/[email protected] | |
if: failure() | |
with: | |
name: connectedE2eDebugAndroidTest | |
path: ./**/build/reports/tests/connectedE2eDebugAndroidTest | |
# 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 |