Fix initial network available state not set in network & lifecycle monitor #200
Workflow file for this run
This file contains hidden or 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: Android CI | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }} | |
| BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }} | |
| BUILD_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_CACHE_AWS_ACCESS_KEY_ID }} | |
| BUILD_CACHE_AWS_SECRET_KEY: ${{ secrets.BUILD_CACHE_AWS_SECRET_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_PR_NUM: ${{ github.event.pull_request.number }} | |
| jobs: | |
| build: | |
| name: Compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - uses: GetStream/android-ci-actions/actions/gradle-cache@main | |
| - name: Make Gradle executable | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew assembleDebug --scan | |
| spotless: | |
| name: Spotless | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/[email protected] | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - name: Run spotless check | |
| run: ./gradlew spotlessCheck --scan | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/[email protected] | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - name: Run lint check | |
| run: ./gradlew lint | |
| unitTest: | |
| name: Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - uses: GetStream/android-ci-actions/actions/setup-java@main | |
| - uses: GetStream/android-ci-actions/actions/gradle-cache@main | |
| - name: Run unit tests | |
| run: ./gradlew testCoverage --scan --stacktrace | |
| - name: Unit tests core results | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: unit-tests-core-results | |
| path: stream-android-core/build/reports/tests/testDebugUnitTest/index.html | |
| - uses: GetStream/android-ci-actions/actions/setup-ruby@main | |
| - name: Sonar | |
| run: ./gradlew sonar | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |