Exclude CONTRIBUTING.md to trigger workflows #89
This file contains 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@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
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@v4 | |
with: | |
name: test-reports | |
path: app/build/reports/tests/testDebugUnitTest/ | |
- name: Build with Gradle Wrapper | |
run: ./gradlew assembleDebug --stacktrace |