From b20cf888cdad0725ba5d8a8194ebcd2b712fb165 Mon Sep 17 00:00:00 2001 From: F0x1d Date: Sat, 6 Jul 2024 20:55:40 +0300 Subject: [PATCH] [fix]: added reports uploading to CI --- .github/workflows/build.yml | 9 ++++++--- .github/workflows/unit_tests.yml | 9 ++++++++- gradle.properties | 3 ++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f799f8b..b371238b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ env: jobs: build: name: Build APK - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -44,7 +44,7 @@ jobs: send: name: Send APK - runs-on: ubuntu-latest + runs-on: macos-latest needs: build steps: - name: Checkout @@ -55,6 +55,9 @@ jobs: with: name: logfox-release + - name: Check directory + run: ls -a logfox-release + - name: Send APK to Telegram uses: appleboy/telegram-action@master with: @@ -67,4 +70,4 @@ jobs: *${{ github.actor }}* committed to *${{ github.repository }}* Branch: *${{ github.head_ref }}* - Commit message: `${{ github.event.head_commit.message }}` + Commit message: `${{ github.event.pull_request.head.label }}` diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index c0f431ad..951ea723 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -8,7 +8,7 @@ on: jobs: test: name: Run unit tests - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -22,3 +22,10 @@ jobs: - name: Run tests run: bash ./gradlew testDebugUnitTest -Proborazzi.test.verify=true + + - name: Upload report + if: failure() + uses: actions/upload-artifact@v4 + with: + name: report + path: feature/feature-setup/build/reports diff --git a/gradle.properties b/gradle.properties index 223eb0c1..8ed1cbf7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,4 +21,5 @@ kotlin.code.style=official # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true -android.nonFinalResIds=true \ No newline at end of file +android.nonFinalResIds=true +roborazzi.test.record=true