-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,53 +17,49 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: ./.github/workflows/shared/setup-java-gradle.yml | ||
with: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Build the samples | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./gradlew :samples:compileDebugSources | ||
- name: Build the samples | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./gradlew :samples:compileDebugSources | ||
- name: Android Unit Tests | ||
run: ./gradlew androidUnitOnlyAffectedTest | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Android Unit Tests | ||
run: ./gradlew androidUnitOnlyAffectedTest | ||
env: | ||
GITHUB_USER: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Archive Test Reports | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-reports | ||
path: ./**/build/reports/tests/** | ||
- name: Archive Test Reports | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-reports | ||
path: ./**/build/reports/tests/** | ||
|
||
- name: Archive Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: | | ||
./**/build/test-results/testDebugUnitTest/**/*.xml | ||
./**/build/test-results/**/*.xml | ||
- name: Archive Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: | | ||
./**/build/test-results/testDebugUnitTest/**/*.xml | ||
./**/build/test-results/**/*.xml | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/[email protected] | ||
if: always() | ||
with: | ||
files: | | ||
**/build/test-results/testDebugUnitTest/**/*.xml | ||
**/build/test-results/**/*.xml | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/[email protected] | ||
if: always() | ||
with: | ||
files: | | ||
**/build/test-results/testDebugUnitTest/**/*.xml | ||
**/build/test-results/**/*.xml | ||
- name: Cleanup Gradle Cache | ||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | ||
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties | ||
- name: Cleanup Gradle Cache | ||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | ||
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | ||
run: | | ||
rm -f ~/.gradle/caches/modules-2/modules-2.lock | ||
rm -f ~/.gradle/caches/modules-2/gc.properties | ||
upload-test-results-datadadog: | ||
runs-on: ubuntu-latest | ||
|