From 5c6318bd799d9b73cfa51dd83efe653fed3a1257 Mon Sep 17 00:00:00 2001 From: Alexandre G Pereira Date: Sun, 18 Aug 2024 10:34:25 -0300 Subject: [PATCH] Update Main.yml --- .github/workflows/Main.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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: