bump version #16
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 Tests | |
| on: | |
| push: | |
| branches: [master, develop] | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run SDK unit tests | |
| run: ./gradlew :sdk:testDebugUnitTest | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: sdk/build/reports/tests/ | |
| retention-days: 7 | |
| - name: Test Report Summary | |
| if: always() | |
| uses: dorny/test-reporter@v1 | |
| with: | |
| name: JUnit Test Results | |
| path: '**/build/test-results/test*/*.xml' | |
| reporter: java-junit | |
| fail-on-error: true |