Merge pull request #217 from mngoe/OP-2771 #135
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: | |
| - '*' | |
| # tags: | |
| # - '!v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Environment info | |
| run: | | |
| gradle --version | |
| - name: show gradlew permission | |
| run: | | |
| chmod +x gradlew | |
| - name: build | |
| run: | | |
| ./gradlew assembleDemoProdDebug --stacktrace | |
| - name: Run gradle tests | |
| run: ./gradlew testDemoProdDebugUnitTest | |
| - name: Environment info | |
| run: | | |
| gradle --version | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: openimis-policies-apk-${{github.run_number}}-${{github.sha}} | |
| path: ./app/build/outputs/**/*.apk | |
| - name: build | |
| run: | | |
| ./gradlew bundleDemoProdDebug --stacktrace | |
| - name: Environment info | |
| run: | | |
| gradle --version | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: openimis-policies-aab-${{github.run_number}}-${{github.sha}} | |
| path: ./app/build/outputs/**/*.aab |