fix: ktlint #63
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: Build, Test and Push | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '20' | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Run unit tests | |
run: ./gradlew test | |
- name: Run Android tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
arch: x86 | |
profile: Nexus 6 | |
script: ./gradlew connectedCheck --stacktrace | |
- name: Push to master branch | |
if: ${{ success() }} | |
uses: ad-m/github-push-action@master | |
with: | |
branch: master | |
force: true | |
github_token: ${{ secrets.PAT }} |