Skip to content

Commit 372b117

Browse files
fix: Disable instrumentation tests temporarily (#561)
1 parent 6a4cfda commit 372b117

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed

.github/workflows/daily.yml

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -64,67 +64,67 @@ jobs:
6464
- name: "Push kit updates to release branch"
6565
run: git push origin regression/${{ github.run_number }}
6666

67-
instrumented-tests:
68-
name: "Instrumented Tests"
69-
timeout-minutes: 30
70-
runs-on: ubuntu-latest
71-
needs: create-regression-branch
72-
steps:
73-
- name: "Checkout future release branch"
74-
uses: actions/checkout@v3
75-
with:
76-
repository: mparticle/mparticle-android-sdk
77-
ref: regression/${{ github.run_number }}
78-
- name: "Install JDK 17"
79-
uses: actions/setup-java@v3
80-
with:
81-
distribution: "zulu"
82-
java-version: "17"
83-
cache: "gradle"
84-
- name: "Run Instrumented Tests"
85-
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d #v2.33.0
86-
with:
87-
api-level: 28
88-
#script: ./gradlew :android-core:cAT :android-kit-base:cAT --stacktrace
89-
script: |
90-
#Disable benchmark tests as they do not work on emulators
91-
adb uninstall com.mparticle.kits.test; ./gradlew connectedCheck --stacktrace
92-
./gradlew :android-core:cAT :android-kit-base:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none
93-
- name: "Archive Instrumented Test Results"
94-
uses: actions/upload-artifact@v4
95-
if: always()
96-
with:
97-
name: instrumented-test-results
98-
path: android-core/build/reports/androidTests/connected/**
99-
100-
instrumented-orchestrator-tests:
101-
name: "Instrumented Orchestrator Tests"
102-
timeout-minutes: 30
103-
runs-on: ubuntu-latest
104-
needs: create-regression-branch
105-
steps:
106-
- name: "Checkout Branch"
107-
uses: actions/checkout@v3
108-
with:
109-
repository: mparticle/mparticle-android-sdk
110-
ref: regression/${{ github.run_number }}
111-
- name: "Install JDK 17"
112-
uses: actions/setup-java@v3
113-
with:
114-
distribution: "zulu"
115-
java-version: "17"
116-
cache: "gradle"
117-
- name: "Run Instrumented Orchestrator Tests"
118-
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d #v2.33.0
119-
with:
120-
api-level: 28
121-
script: ./gradlew -Porchestrator=true :android-core:cAT --stacktrace
122-
- name: "Archive Instrumented Orchestrator Tests Results"
123-
uses: actions/upload-artifact@v4
124-
if: always()
125-
with:
126-
name: "instrumented-orchestrator-tests-results"
127-
path: android-core/build/orchestrator/**
67+
# instrumented-tests:
68+
# name: "Instrumented Tests"
69+
# timeout-minutes: 30
70+
# runs-on: ubuntu-latest
71+
# needs: create-regression-branch
72+
# steps:
73+
# - name: "Checkout future release branch"
74+
# uses: actions/checkout@v3
75+
# with:
76+
# repository: mparticle/mparticle-android-sdk
77+
# ref: regression/${{ github.run_number }}
78+
# - name: "Install JDK 17"
79+
# uses: actions/setup-java@v3
80+
# with:
81+
# distribution: "zulu"
82+
# java-version: "17"
83+
# cache: "gradle"
84+
# - name: "Run Instrumented Tests"
85+
# uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d #v2.33.0
86+
# with:
87+
# api-level: 28
88+
# #script: ./gradlew :android-core:cAT :android-kit-base:cAT --stacktrace
89+
# script: |
90+
# #Disable benchmark tests as they do not work on emulators
91+
# adb uninstall com.mparticle.kits.test; ./gradlew connectedCheck --stacktrace
92+
# ./gradlew :android-core:cAT :android-kit-base:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none
93+
# - name: "Archive Instrumented Test Results"
94+
# uses: actions/upload-artifact@v4
95+
# if: always()
96+
# with:
97+
# name: instrumented-test-results
98+
# path: android-core/build/reports/androidTests/connected/**
99+
#
100+
# instrumented-orchestrator-tests:
101+
# name: "Instrumented Orchestrator Tests"
102+
# timeout-minutes: 30
103+
# runs-on: ubuntu-latest
104+
# needs: create-regression-branch
105+
# steps:
106+
# - name: "Checkout Branch"
107+
# uses: actions/checkout@v3
108+
# with:
109+
# repository: mparticle/mparticle-android-sdk
110+
# ref: regression/${{ github.run_number }}
111+
# - name: "Install JDK 17"
112+
# uses: actions/setup-java@v3
113+
# with:
114+
# distribution: "zulu"
115+
# java-version: "17"
116+
# cache: "gradle"
117+
# - name: "Run Instrumented Orchestrator Tests"
118+
# uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d #v2.33.0
119+
# with:
120+
# api-level: 28
121+
# script: ./gradlew -Porchestrator=true :android-core:cAT --stacktrace
122+
# - name: "Archive Instrumented Orchestrator Tests Results"
123+
# uses: actions/upload-artifact@v4
124+
# if: always()
125+
# with:
126+
# name: "instrumented-orchestrator-tests-results"
127+
# path: android-core/build/orchestrator/**
128128

129129
unit-tests:
130130
name: "Unit Tests"

0 commit comments

Comments
 (0)