JDK 17 で認識されない JVM オプションを削除し CI のデーモン起動失敗を解消 #2
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - claude/** | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - name: Setup JDK | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Build debug variants | |
| run: ./gradlew assembleProdDebug assembleDemoDebug | |
| - name: Unit tests | |
| run: ./gradlew testProdDebugUnitTest | |
| - name: Lint | |
| run: ./gradlew lintProdDebug | |
| - name: Build release | |
| run: ./gradlew assembleProdRelease | |
| - name: Upload reports | |
| if: failure() | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: reports | |
| path: | | |
| app/build/reports/ |