Create build_and_test_sdk.yml #2
Workflow file for this run
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: Java Gradle Build and Test | |
permissions: | |
checks: write | |
pull-requests: write | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
- build_and_test_action | |
pull_request: | |
branches: | |
- master | |
- staging | |
- build_and_test_action | |
jobs: | |
build: | |
name: Build and Test the SDK | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'corretto' | |
- name: Run connected tests | |
uses: ReactiveCircus/android-emulator-runner@v2 | |
with: | |
api-level: 30 | |
target: google_apis | |
arch: x86_64 | |
script: ./gradlew connectedCheck | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
check_name: "Unit Test Results :rocket:" | |
comment_title: "Unit Test Results :rocket:" | |
files: | | |
sdk-java/build/test-results/**/*.xml |