build: bump the kotlin group across 1 directory with 6 updates #1290
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: On Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| merge_group: | |
| workflow_dispatch: | |
| jobs: | |
| onPullRequestJob: | |
| env: | |
| ANDROID_HOME: ${{ github.workspace }}/bin/androidSdk | |
| name: Verify code base when pull request is published/updated | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout codebase | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| lfs: 'true' | |
| submodules: 'true' | |
| fetch-depth: 0 | |
| - name: Clean runner | |
| uses: ./mobile-android-pipelines/actions/clean-runner | |
| - name: Clean workspace | |
| uses: ./mobile-android-pipelines/actions/clean-workspace | |
| - name: Setup GitHub Runner workflow | |
| uses: ./mobile-android-pipelines/actions/setup-runner | |
| with: | |
| gradle-cache-disabled: ${{ inputs.GRADLE_CACHE_DISABLED }} | |
| - name: Verify Conventional commit standards against latest git tag | |
| uses: ./mobile-android-pipelines/actions/verify-conventional-commit | |
| - name: Lint script files | |
| uses: ./mobile-android-pipelines/actions/lint | |
| - name: Screenshot test | |
| run: | | |
| ./gradlew patterns:verifyPaparazziDebug \ | |
| componentsv2:verifyPaparazziDebug \ | |
| theme:verifyPaparazziDebug \ | |
| --continue \ | |
| -Pgpr.user=${{ secrets.GITHUB_ACTOR }} \ | |
| -Pgpr.token=${{ secrets.GITHUB_TOKEN }} | |
| shell: bash | |
| - name: Run gradle testing suite | |
| uses: ./mobile-android-pipelines/actions/run-testing-suite | |
| - name: Sonar scan | |
| uses: ./mobile-android-pipelines/actions/sonar-scan | |
| with: | |
| sonar-token: ${{ secrets.SONAR_TOKEN }} | |
| - name: Bundle reports folder | |
| uses: ./mobile-android-pipelines/actions/bundle-reports | |
| - name: Increment the release version using Conventional Commits | |
| id: versioning | |
| if: ${{ github.event_name != 'pull_request' }} | |
| uses: ./mobile-android-pipelines/actions/increment-version | |
| - name: Publish release tags | |
| if: ${{ github.event_name != 'pull_request' | |
| && steps.versioning.outputs.current_version != steps.versioning.outputs.new_version }} | |
| uses: ./mobile-android-pipelines/actions/publish-release-tag | |
| - name: Test local publish | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: ./mobile-android-pipelines/actions/maven-publish-local | |
| with: | |
| version-name: ${{ steps.versioning.outputs.new_version }} | |
| - name: Publish package | |
| if: ${{ github.event_name != 'pull_request' | |
| && steps.versioning.outputs.current_version != steps.versioning.outputs.new_version }} | |
| uses: ./mobile-android-pipelines/actions/maven-publish | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| VERSION_NAME: ${{ steps.versioning.outputs.new_version }} | |
| - name: Generate Changelog | |
| uses: ./mobile-android-pipelines/actions/generate-and-upload-changelog | |
| with: | |
| current-version: ${{ steps.versioning.outputs.current_version }} | |
| new-version: ${{ steps.versioning.outputs.new_version }} | |
| version-prefix: ${{ inputs.VERSION_PREFIX }} | |
| - name: Clean workspace | |
| uses: ./mobile-android-pipelines/actions/clean-workspace |