Skip to content

Update actions/upload-artifact to v4 #12

Update actions/upload-artifact to v4

Update actions/upload-artifact to v4 #12

Workflow file for this run

name: Run Test
on: push
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Run Unit Test
run: ./gradlew test
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: unit_test_reports
path: library/build/reports/tests/testDebugUnitTest/
retention-days: 60
instrumentation-test:
runs-on: macos-latest
steps:
- name: Checkout Code
uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Setup Java 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run Instrumentation Test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: instrumentation_test_reports
path: library/build/reports/androidTests/connected/
retention-days: 60