chore: update Composables Core to 1.49.6 #123
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: Check PR | |
| on: | |
| # Triggers the workflow on every pull request to master branch | |
| pull_request: | |
| branches: | |
| - main | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Load API Token from secrets | |
| env: | |
| API_TOKEN: ${{ secrets.API_TOKEN }} | |
| run: echo API_TOKEN=\"$API_TOKEN\" > ./local.properties | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| # - name: Copy gradle properties file | |
| # run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'gradle' | |
| - name: Build the app | |
| run: ./gradlew assembleDebug | |
| - name: Upload apk | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug apk | |
| path: app/build/outputs/apk/debug/app-debug.apk | |
| - name: Upload aar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug aar | |
| path: android/build/outputs/aar/android-debug.aar | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| strategy: | |
| matrix: | |
| api-level: [26, 29, 33, 35] | |
| target: [playstore] | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Load API Token from secrets | |
| env: | |
| API_TOKEN: ${{ secrets.API_TOKEN }} | |
| run: echo API_TOKEN=\"$API_TOKEN\" > ./local.properties | |
| - name: Enable KVM group perms | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| # - name: Copy gradle properties file | |
| # run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'gradle' | |
| # - name: Run detekt | |
| # run: ./gradlew detektCheck | |
| - name: Run unit tests | |
| run: ./gradlew :android:test --stacktrace | |
| - name: Instrumentation Tests | |
| uses: reactivecircus/android-emulator-runner@v2 | |
| with: | |
| api-level: ${{ matrix.api-level }} | |
| target: ${{ matrix.target }} | |
| arch: ${{ matrix.api-level > 27 && 'x86_64' || 'x86' }} | |
| profile: pixel_3a | |
| script: ./gradlew connectedCheck | |
| - name: Upload Reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test-Reports-${{ matrix.api-level }}-${{ matrix.target }} | |
| path: android/build/reports | |
| if: always() |