chore(deps): update actions/upload-artifact action to v6 (#94) #429
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Testing | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'CONTRIBUTING.md' | |
| - 'README.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'CONTRIBUTING.md' | |
| - 'README.md' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Grant execute permission for Gradle wrapper | |
| run: chmod +x gradlew | |
| - name: Run unit test app | |
| run: ./gradlew testDebugUnitTest | |
| - name: Upload test reports | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: test-reports | |
| path: app/build/reports/tests/testDebugUnitTest/ | |
| - name: Build with Gradle Wrapper | |
| run: ./gradlew assembleDebug --stacktrace |