11name : " Build and Test"
22
3- on : [workflow_dispatch, pull_request]
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ push :
47
58concurrency :
69 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -13,34 +16,34 @@ permissions:
1316 id-token : write
1417
1518jobs :
16- # Code quality checks
17- trunk-check :
18- name : Trunk code check
19- runs-on : ubuntu-latest
20- steps :
21- - name : Checkout
22- uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v5.0.0
23- - name : Trunk Check
24- uses : trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b # v1.2.4
25- with :
26- check-mode : pull_request
27- pr-check-hadcoded-secrets :
28- name : " Check PR for hardcoded secrets"
29- uses : mParticle/mparticle-workflows/.github/workflows/security-hardcoded-secrets.yml@main
30- pr-branch-check-name :
31- name : " Check PR for semantic branch name"
32- uses : mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@main
33- pr-title-check :
34- name : " Check PR for semantic title"
35- uses : mParticle/mparticle-workflows/.github/workflows/pr-title-check.yml@main
19+ # # Code quality checks
20+ # trunk-check:
21+ # name: Trunk code check
22+ # runs-on: ubuntu-latest
23+ # steps:
24+ # - name: Checkout
25+ # uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 #v5.0.0
26+ # - name: Trunk Check
27+ # uses: trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b # v1.2.4
28+ # with:
29+ # check-mode: pull_request
30+ # pr-check-hadcoded-secrets:
31+ # name: "Check PR for hardcoded secrets"
32+ # uses: mParticle/mparticle-workflows/.github/workflows/security-hardcoded-secrets.yml@main
33+ # pr-branch-check-name:
34+ # name: "Check PR for semantic branch name"
35+ # uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@main
36+ # pr-title-check:
37+ # name: "Check PR for semantic title"
38+ # uses: mParticle/mparticle-workflows/.github/workflows/pr-title-check.yml@main
3639
37- instrumented-core :
38- uses : ./.github/workflows/instrumented-tests.yml
39- with :
40- display_name : Core
41- gradle_command : " :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info --stacktrace"
42- artifact_name : instrumented-core-results
43- artifact_path : android-core/build/reports/androidTests/connected/**
40+ # instrumented-core:
41+ # uses: ./.github/workflows/instrumented-tests.yml
42+ # with:
43+ # display_name: Core
44+ # gradle_command: ":android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info --stacktrace"
45+ # artifact_name: instrumented-core-results
46+ # artifact_path: android-core/build/reports/androidTests/connected/**
4447
4548 instrumented-kit-base :
4649 uses : ./.github/workflows/instrumented-tests.yml
@@ -54,152 +57,152 @@ jobs:
5457 artifact_name : " instrumented-kit-base-results-shard-${{ matrix.shard }}"
5558 artifact_path : android-kit-base/build/reports/androidTests/connected/**
5659
57- instrumented-testutils :
58- uses : ./.github/workflows/instrumented-tests.yml
59- with :
60- display_name : Testutils
61- gradle_command : " :testutils:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info --stacktrace"
62- artifact_name : instrumented-testutils-results
63- artifact_path : testutils/build/reports/androidTests/connected/**
60+ # instrumented-testutils:
61+ # uses: ./.github/workflows/instrumented-tests.yml
62+ # with:
63+ # display_name: Testutils
64+ # gradle_command: ":testutils:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --info --stacktrace"
65+ # artifact_name: instrumented-testutils-results
66+ # artifact_path: testutils/build/reports/androidTests/connected/**
6467
65- instrumented-orchestrator :
66- uses : ./.github/workflows/instrumented-tests.yml
67- with :
68- display_name : Orchestrator
69- gradle_command : " -Porchestrator=true :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --stacktrace"
70- artifact_name : instrumented-orchestrator-results
71- artifact_path : android-core/build/orchestrator/**
72- unit-tests :
73- name : " Unit Tests"
74- timeout-minutes : 15
75- runs-on : ubuntu-latest
76- steps :
77- - name : " Checkout Branch"
78- uses : actions/checkout@v6
79- - name : " Install JDK 17"
80- uses : actions/setup-java@v5
81- with :
82- distribution : " zulu"
83- java-version : " 17"
84- - name : " Run Unit Tests"
85- run : ./gradlew test
86- - name : " Print Android Unit Tests Report"
87- uses : asadmansr/android-test-report-action@384cd31388782f4106dc4a1b37eea2ff02e0aad7 # v1.2.0
88- if : always()
89- - name : " Archive Unit Test Results"
90- uses : actions/upload-artifact@v7
91- if : always()
92- with :
93- name : " unit-tests-results"
94- path : ./**/build/reports/**
68+ # instrumented-orchestrator:
69+ # uses: ./.github/workflows/instrumented-tests.yml
70+ # with:
71+ # display_name: Orchestrator
72+ # gradle_command: "-Porchestrator=true :android-core:cAT -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=none --stacktrace"
73+ # artifact_name: instrumented-orchestrator-results
74+ # artifact_path: android-core/build/orchestrator/**
75+ # unit-tests:
76+ # name: "Unit Tests"
77+ # timeout-minutes: 15
78+ # runs-on: ubuntu-latest
79+ # steps:
80+ # - name: "Checkout Branch"
81+ # uses: actions/checkout@v6
82+ # - name: "Install JDK 17"
83+ # uses: actions/setup-java@v5
84+ # with:
85+ # distribution: "zulu"
86+ # java-version: "17"
87+ # - name: "Run Unit Tests"
88+ # run: ./gradlew test
89+ # - name: "Print Android Unit Tests Report"
90+ # uses: asadmansr/android-test-report-action@384cd31388782f4106dc4a1b37eea2ff02e0aad7 #v1.2.0
91+ # if: always()
92+ # - name: "Archive Unit Test Results"
93+ # uses: actions/upload-artifact@v7
94+ # if: always()
95+ # with:
96+ # name: "unit-tests-results"
97+ # path: ./**/build/reports/**
9598
96- lint-checks :
97- name : " Lint Checks"
98- timeout-minutes : 20
99- runs-on : macos-latest
100- steps :
101- - name : " Checkout Branch"
102- uses : actions/checkout@v6
103- - name : " Install JDK 17"
104- uses : actions/setup-java@v5
105- with :
106- distribution : " zulu"
107- java-version : " 17"
108- - name : " Run Android Core SDK Lint"
109- run : ./gradlew lint
110- - name : " Setup Android Kit Lint"
111- run : ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
112- - name : " Run Android Kit Lint"
113- run : ./gradlew -c settings-kits.gradle lint
114- - name : " Archive Lint Test Results"
115- uses : actions/upload-artifact@v7
116- if : always()
117- with :
118- name : " lint-results"
119- path : ./**/build/reports/**
99+ # lint-checks:
100+ # name: "Lint Checks"
101+ # timeout-minutes: 20
102+ # runs-on: macos-latest
103+ # steps:
104+ # - name: "Checkout Branch"
105+ # uses: actions/checkout@v6
106+ # - name: "Install JDK 17"
107+ # uses: actions/setup-java@v5
108+ # with:
109+ # distribution: "zulu"
110+ # java-version: "17"
111+ # - name: "Run Android Core SDK Lint"
112+ # run: ./gradlew lint
113+ # - name: "Setup Android Kit Lint"
114+ # run: ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
115+ # - name: "Run Android Kit Lint"
116+ # run: ./gradlew -c settings-kits.gradle lint
117+ # - name: "Archive Lint Test Results"
118+ # uses: actions/upload-artifact@v7
119+ # if: always()
120+ # with:
121+ # name: "lint-results"
122+ # path: ./**/build/reports/**
120123
121- kotlin-lint-checks :
122- name : " Kotlin Lint Checks"
123- timeout-minutes : 15
124- runs-on : macos-latest
125- steps :
126- - name : " Checkout Branch"
127- uses : actions/checkout@v6
128- - name : " Install JDK 17"
129- uses : actions/setup-java@v5
130- with :
131- distribution : " zulu"
132- java-version : " 17"
133- - name : " Run Android Core SDK Kotlin Lint"
134- run : ./gradlew ktlintCheck
135- - name : " Setup Android Kit Kotlin Lint"
136- run : ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
137- - name : " Run Android Kit Kotlin Lint"
138- run : ./gradlew -c settings-kits.gradle ktlintCheck
139- - name : " Archive Kotlin Lint Test Results"
140- uses : actions/upload-artifact@v7
141- if : always()
142- with :
143- name : " kotlin-lint-results"
144- path : ./**/build/reports/**
124+ # kotlin-lint-checks:
125+ # name: "Kotlin Lint Checks"
126+ # timeout-minutes: 15
127+ # runs-on: macos-latest
128+ # steps:
129+ # - name: "Checkout Branch"
130+ # uses: actions/checkout@v6
131+ # - name: "Install JDK 17"
132+ # uses: actions/setup-java@v5
133+ # with:
134+ # distribution: "zulu"
135+ # java-version: "17"
136+ # - name: "Run Android Core SDK Kotlin Lint"
137+ # run: ./gradlew ktlintCheck
138+ # - name: "Setup Android Kit Kotlin Lint"
139+ # run: ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
140+ # - name: "Run Android Kit Kotlin Lint"
141+ # run: ./gradlew -c settings-kits.gradle ktlintCheck
142+ # - name: "Archive Kotlin Lint Test Results"
143+ # uses: actions/upload-artifact@v7
144+ # if: always()
145+ # with:
146+ # name: "kotlin-lint-results"
147+ # path: ./**/build/reports/**
145148
146- security-checks :
147- name : " Security Lint Checks"
148- uses : mparticle/mparticle-workflows/.github/workflows/security-checks.yml@main
149- with :
150- base_branch : main
149+ # security-checks:
150+ # name: "Security Lint Checks"
151+ # uses: mparticle/mparticle-workflows/.github/workflows/security-checks.yml@main
152+ # with:
153+ # base_branch: main
151154
152- kit-compatibility-test :
153- name : " Kit Compatibility Test"
154- runs-on : ubuntu-latest
155- if : github.event_name == 'pull_request'
156- steps :
157- - name : " Checkout Branch"
158- uses : actions/checkout@v6
159- - name : " Install JDK 17"
160- uses : actions/setup-java@v5
161- with :
162- distribution : " zulu"
163- java-version : " 17"
164- - name : " Generate Core Release Build"
165- run : ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
166- - name : " Run Kit-Base Release Tests and Build"
167- run : ./gradlew :android-kit-base:testRelease -PVERSION=$(head -n 1 VERSION)
168- - name : " Run Kit Release Tests and Build"
169- run : ./gradlew -p kits testRelease -c ../settings-kits.gradle -PVERSION=$(head -n 1 VERSION)
170- - name : " Run Isolated Kit Compatibility Tests (urbanairship)"
171- working-directory : kits/urbanairship/urbanairship-20
172- run : ./gradlew -PisRelease=true testRelease
155+ # kit-compatibility-test:
156+ # name: "Kit Compatibility Test"
157+ # runs-on: ubuntu-latest
158+ # if: github.event_name == 'pull_request'
159+ # steps:
160+ # - name: "Checkout Branch"
161+ # uses: actions/checkout@v6
162+ # - name: "Install JDK 17"
163+ # uses: actions/setup-java@v5
164+ # with:
165+ # distribution: "zulu"
166+ # java-version: "17"
167+ # - name: "Generate Core Release Build"
168+ # run: ./gradlew publishMavenPublicationToMavenLocal -PVERSION=$(head -n 1 VERSION)
169+ # - name: "Run Kit-Base Release Tests and Build"
170+ # run: ./gradlew :android-kit-base:testRelease -PVERSION=$(head -n 1 VERSION)
171+ # - name: "Run Kit Release Tests and Build"
172+ # run: ./gradlew -p kits testRelease -c ../settings-kits.gradle -PVERSION=$(head -n 1 VERSION)
173+ # - name: "Run Isolated Kit Compatibility Tests (urbanairship)"
174+ # working-directory: kits/urbanairship/urbanairship-20
175+ # run: ./gradlew -PisRelease=true testRelease
173176
174- automerge-dependabot :
175- name : " Save PR Number for Dependabot Automerge"
176- needs :
177- [
178- instrumented-core,
179- instrumented-kit-base,
180- instrumented-testutils,
181- instrumented-orchestrator,
182- unit-tests,
183- lint-checks,
184- kotlin-lint-checks,
185- kit-compatibility-test,
186- ]
187- uses : mParticle/mparticle-workflows/.github/workflows/dependabot-save-pr-number.yml@main
177+ # automerge-dependabot:
178+ # name: "Save PR Number for Dependabot Automerge"
179+ # needs:
180+ # [
181+ # instrumented-core,
182+ # instrumented-kit-base,
183+ # instrumented-testutils,
184+ # instrumented-orchestrator,
185+ # unit-tests,
186+ # lint-checks,
187+ # kotlin-lint-checks,
188+ # kit-compatibility-test,
189+ # ]
190+ # uses: mParticle/mparticle-workflows/.github/workflows/dependabot-save-pr-number.yml@main
188191
189- pr-notify :
190- if : >
191- github.event_name == 'pull_request' &&
192- github.event.pull_request.draft == false
193- needs :
194- - instrumented-core
195- - instrumented-kit-base
196- - instrumented-testutils
197- - instrumented-orchestrator
198- - unit-tests
199- - lint-checks
200- - kotlin-lint-checks
201- - security-checks
202- name : Notify GChat
203- uses : ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
204- secrets :
205- gchat_webhook : ${{ secrets.GCHAT_PRS_WEBHOOK }}
192+ # pr-notify:
193+ # if: >
194+ # github.event_name == 'pull_request' &&
195+ # github.event.pull_request.draft == false
196+ # needs:
197+ # - instrumented-core
198+ # - instrumented-kit-base
199+ # - instrumented-testutils
200+ # - instrumented-orchestrator
201+ # - unit-tests
202+ # - lint-checks
203+ # - kotlin-lint-checks
204+ # - security-checks
205+ # name: Notify GChat
206+ # uses: ROKT/rokt-workflows/.github/workflows/oss_pr_opened_notification.yml@main
207+ # secrets:
208+ # gchat_webhook: ${{ secrets.GCHAT_PRS_WEBHOOK }}
0 commit comments