Skip to content

Commit

Permalink
Fix CI pipeline (google#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarismail94 committed Mar 23, 2022
1 parent 1b79db7 commit ffacaea
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2

- name: set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: "11"

- name: Make files executable
Expand Down Expand Up @@ -95,15 +96,48 @@ jobs:
if: ${{ matrix.full-build == true }}
run: ./gradlew build

- name: Run instrumentation tests
- name: Check with Gradle
run: ./gradlew check

- name: Run instrumentation tests for datacapture
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: default
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew :datacapture:connectedCheck --stacktrace

- name: Run instrumentation tests for catalog
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: default
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew :catalog:connectedCheck --stacktrace

- name: Run instrumentation tests for engine
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: default
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew :engine:connectedCheck --stacktrace

- name: Run instrumentation tests for workflow
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
target: default
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck --stacktrace
script: ./gradlew :workflow:connectedCheck --stacktrace

- name: Generate Jacoco test coverage reports
if: matrix.api-level == 30 # Only generate coverage report on API level 30
Expand Down

0 comments on commit ffacaea

Please sign in to comment.