diff --git a/.github/workflows/Main.yml b/.github/workflows/Main.yml index 97cc01d7..47992288 100644 --- a/.github/workflows/Main.yml +++ b/.github/workflows/Main.yml @@ -27,21 +27,29 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Setup Xcode version - uses: maxim-lobanov/setup-xcode@v1.6.0 - with: - xcode-version: latest-stable + - name: Verify database migration + run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration - name: Build with Gradle env: MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} - run: ./gradlew bundleRelease :app:packageDmg + run: ./gradlew jvmTest testReleaseUnitTest bundleRelease :app:packageDmg - name: Generate Dev Apk env: MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }} run: ./gradlew assembleRelease -Pdev + - name: Upload the test report + if: failure() + uses: actions/upload-artifact@v3.1.1 + with: + name: TestReport + path: | + feature-monster-compendium/build/reports/tests + data/build/reports/tests + domain/build/reports/tests + - name: Upload Dmg uses: actions/upload-artifact@v3.1.1 with: