Chore master: Change version code #51
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: VentNote CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master, staging ] | |
| jobs: | |
| lint-and-unit-test: | |
| name: Lint and Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Run Lint | |
| run: ./gradlew lintDebug --stacktrace | |
| - name: Run Unit Tests | |
| run: ./gradlew testDebugUnitTest --stacktrace | |
| - name: Upload Test Reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lint-and-unit-test-reports | |
| path: | | |
| **/build/reports/lint-results-*.html | |
| **/build/reports/tests/testDebugUnitTest/ | |
| # instrumentation-test: | |
| # name: Instrumentation Tests | |
| # runs-on: macos-latest | |
| # timeout-minutes: 60 | |
| # strategy: | |
| # matrix: | |
| # api-level: [34] | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # | |
| # - name: Set up JDK 17 | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # java-version: '17' | |
| # distribution: 'temurin' | |
| # cache: gradle | |
| # | |
| # - name: Run Instrumentation Tests | |
| # uses: reactivecircus/android-emulator-runner@v2 | |
| # with: | |
| # api-level: ${{ matrix.api-level }} | |
| # arch: arm64-v8a | |
| # target: google_apis | |
| # force-avd-creation: true | |
| # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim | |
| # disable-animations: true | |
| # # Increased RAM for better stability on ARM runners | |
| # disk-size: 4096M | |
| # heap-size: 512M | |
| # script: ./gradlew connectedDebugAndroidTest --stacktrace | |
| # | |
| # - name: Upload Instrumentation Reports | |
| # if: always() | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: instrumentation-test-reports | |
| # path: app/build/reports/androidTests/connected/ | |
| build-check: | |
| name: Build APK Check | |
| runs-on: ubuntu-latest | |
| needs: [lint-and-unit-test] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug --stacktrace | |
| - name: Upload Debug APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-apk | |
| path: app/build/outputs/apk/debug/*.apk |