Skip to content

Commit

Permalink
[fix]: added reports uploading to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 6, 2024
1 parent 0af71b0 commit b20cf88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

send:
name: Send APK
runs-on: ubuntu-latest
runs-on: macos-latest
needs: build
steps:
- name: Checkout
Expand All @@ -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:
Expand All @@ -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 }}`
9 changes: 8 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
android.nonFinalResIds=true
roborazzi.test.record=true

0 comments on commit b20cf88

Please sign in to comment.