feat: support custom sourcemap intake endpoint for private deployments #22
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: Test | |
| on: | |
| pull_request: | |
| branches: [ main, develop, publish, feat/*, feature/* ] | |
| push: | |
| branches: [ main, develop, publish, feat/*, feature/* ] | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build plugin | |
| run: ./gradlew :dd-sdk-android-gradle-plugin:build --stacktrace --no-daemon | |
| - name: Generate build report | |
| if: always() | |
| run: | | |
| echo "## Build Results" >> $GITHUB_STEP_SUMMARY | |
| echo "Build completed successfully" >> $GITHUB_STEP_SUMMARY | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| dd-sdk-android-gradle-plugin/build/test-results/ | |
| dd-sdk-android-gradle-plugin/build/reports/ | |
| - name: Verify code coverage | |
| run: ./gradlew :dd-sdk-android-gradle-plugin:jacocoTestCoverageVerification --stacktrace --no-daemon | |
| - name: Upload coverage to Codecov | |
| if: github.event_name == 'push' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: dd-sdk-android-gradle-plugin/build/reports/jacoco/test/jacocoTestReport.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |