upload to Google Play with GitHub Actions, remove Bitrise #3
Workflow file for this run
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: Check and build | |
on: | |
pull_request: | |
workflow_call: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: Gradle Build Action | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }} | |
- name: ktlint | |
run: ./gradlew clean ktlintCheck | |
- name: Regular lint | |
run: ./gradlew app:lintGreenDebug | |
- name: Test | |
run: ./gradlew app:testGreenDebugUnitTest | |
- name: Build | |
run: ./gradlew app:buildGreenDebug |