docs: update README #28
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: Kotlin CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Build and test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| cache: "gradle" | |
| - name: Grant execute permission for gradlew | |
| run: | | |
| cd android | |
| chmod +x gradlew | |
| - name: Auto-format with ktfmt | |
| run: | | |
| cd android | |
| ./gradlew ktfmtFormat | |
| - name: Build with Gradle | |
| run: | | |
| cd android | |
| ./gradlew build | |
| - name: Run tests | |
| run: | | |
| cd android | |
| ./gradlew test |