|
1 | 1 | name: "Build and Test" |
2 | 2 |
|
3 | | -on: [ push, workflow_dispatch, pull_request ] |
| 3 | +on: [ workflow_dispatch, pull_request ] |
4 | 4 |
|
5 | | -jobs: |
| 5 | +concurrency: |
| 6 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 7 | + cancel-in-progress: true |
| 8 | + |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + pull-requests: read |
| 12 | + checks: write |
| 13 | + id-token: write |
6 | 14 |
|
| 15 | +jobs: |
7 | 16 | instrumented-tests: |
8 | 17 | name: "Instrumented Tests" |
9 | 18 | timeout-minutes: 30 |
@@ -54,10 +63,10 @@ jobs: |
54 | 63 | adb uninstall com.mparticle.legacyTest || true |
55 | 64 | adb uninstall com.mparticle.test || true |
56 | 65 |
|
57 | | - ./gradlew connectedCheck --stacktrace |
58 | | - |
59 | | - ./gradlew :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none |
60 | | - ./gradlew :android-kit-base:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none |
| 66 | + ./gradlew connectedCheck --info --stacktrace |
| 67 | +
|
| 68 | + ./gradlew :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info |
| 69 | + ./gradlew :android-kit-base:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info |
61 | 70 | - name: "Archive Instrumented Tests Results" |
62 | 71 | uses: actions/upload-artifact@v4 |
63 | 72 | if: always() |
@@ -220,3 +229,19 @@ jobs: |
220 | 229 | name: "Save PR Number for Dependabot Automerge" |
221 | 230 | needs: [ instrumented-tests, instrumented-orchestrator-tests, unit-tests, lint-checks, kotlin-lint-checks, kit-compatibility-test ] |
222 | 231 | uses: mParticle/mparticle-workflows/.github/workflows/dependabot-save-pr-number.yml@main |
| 232 | + |
| 233 | + pr-notify: |
| 234 | + if: > |
| 235 | + github.event_name == 'pull_request' && |
| 236 | + github.event.pull_request.draft == false |
| 237 | + needs: |
| 238 | + - instrumented-tests |
| 239 | + - unit-tests |
| 240 | + - lint-checks |
| 241 | + - kotlin-lint-checks |
| 242 | + - security-checks |
| 243 | + name: Notify GChat |
| 244 | + uses: ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main |
| 245 | + secrets: |
| 246 | + gchat_webhook: ${{ secrets.GCHAT_PRS_WEBHOOK }} |
| 247 | + |
0 commit comments