Skip to content

Commit

Permalink
Update BuildAndTest.yml
Browse files Browse the repository at this point in the history
v2 -> v4 repo
  • Loading branch information
mojtabashirkhani authored Jan 6, 2025
1 parent 5527a9c commit 3e1f0ab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Restore Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -28,7 +28,7 @@ jobs:
run: ./gradlew testDebugUnitTest --continue
- name: Upload Test Reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-reports
path: '**/build/reports/tests/'
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Restore Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -57,14 +57,14 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
uses: reactivecircus/android-emulator-runner@v4
with:
api-level: 29
script: ./gradlew connectedAndroidTest

- name: Upload Android Test Reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: android-test-reports
path: '**/build/reports/androidTests/'
Expand All @@ -82,7 +82,7 @@ jobs:
java-version: '17'
uses: actions/setup-java@v4
- name: Restore Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -96,7 +96,7 @@ jobs:
run: ./gradlew assembleDebug

- name: Upload APK
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/debug/**.apk
Expand All @@ -109,7 +109,7 @@ jobs:
- uses: technote-space/workflow-conclusion-action@v1
- name: Send mail
if: failure()
uses: dawidd6/action-send-mail@v2
uses: dawidd6/action-send-mail@v4
with:
server_address: smtp.gmail.com
server_port: 465
Expand Down

0 comments on commit 3e1f0ab

Please sign in to comment.