Bump io.github.gmazzo.gitversion from 1.5.1 to 1.6.1 #261
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: CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| release: | |
| types: published | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required for "com.slack.keeper:0.17.0-agp9fix" workaround | |
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| ORG_GRADLE_PROJECT_reverseGeocodingKey: ${{ secrets.REVERSE_GEOCODING_KEY }} | |
| ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.ANDROID_PUBLISHER_CREDENTIALS }} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup host | |
| uses: ./.github/actions/setup-host | |
| with: | |
| gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Test & Build | |
| run: | | |
| ./gradlew build | |
| - name: Publish Test Report | |
| if: ${{ !cancelled() }} | |
| uses: gmazzo/publish-report-annotations@v1 | |
| with: | |
| checkName: Test Results | |
| - name: Upload build reports | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: reports | |
| path: '**/build/reports' | |
| - name: Coverage report | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: '**/build/reports/jacoco/**/*.xml' | |
| - name: Publish to Google Play (internal sharing) | |
| if: ${{ github.event_name != 'release' }} | |
| run: | | |
| ./gradlew uploadDebugPrivateBundle | |
| - name: Publish to Google Play (production) | |
| if: ${{ github.event_name == 'release' }} | |
| run: | | |
| ./gradlew \ | |
| publishReleaseBundle --track=internal \ | |
| promoteArtifact --from-track=internal --promote-track=production | |
| ui-tests: | |
| name: UI Tests | |
| if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'Skip UI Tests') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup host | |
| uses: ./.github/actions/setup-host | |
| with: | |
| gradle-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
| - name: Authenticate with Google Cloud | |
| uses: google-github-actions/auth@v3 | |
| with: | |
| credentials_json: ${{ secrets.FIREBASE_TESTLAB_CREDENTIALS }} | |
| - name: Set up Google Cloud SDK | |
| uses: google-github-actions/setup-gcloud@v3 | |
| with: | |
| install_components: beta | |
| - name: Run UI tests | |
| env: | |
| ORG_GRADLE_PROJECT_firebaseBucketFolder: run_${{ github.run_id }} | |
| run: | | |
| ./gradlew firebaseTestLabCheck -Pminified=true | |
| - name: Publish Test Report | |
| if: ${{ !cancelled() }} | |
| uses: gmazzo/publish-report-annotations@v1 | |
| with: | |
| checkName: Screenshot Tests Results | |
| actionlint: | |
| name: Validate Workflows | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Download actionlint | |
| shell: bash | |
| run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
| - name: Check workflow files | |
| shell: bash | |
| run: ./actionlint -color -format '{{range $err := .}}::error file={{$err.Filepath}},line={{$err.Line}},col={{$err.Column}}::{{$err.Message}}%0A```%0A{{replace $err.Snippet "\\n" "%0A"}}%0A```\n{{end}}' -ignore 'SC2016:' |