Skip to content

Commit 892b617

Browse files
author
Evan Masseau
committed
Thought I'd try running our tests in parallel to speed up CI a little.
1 parent 5c1ec27 commit 892b617

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/android-feature.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
# The type of runner that the job will run on
1515
runs-on: ubuntu-22.04
1616

17+
strategy:
18+
matrix:
19+
module: [ :sdk:core, :sdk:analytics, :sdk:forms, :sdk:push-fcm ]
20+
1721
steps:
1822
# Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it
1923
- uses: actions/checkout@v4
@@ -28,7 +32,7 @@ jobs:
2832

2933
# Call Gradle to run the unit tests
3034
- name: Unit Tests
31-
run: ./gradlew test --stacktrace --no-daemon
35+
run: ./gradlew {{ matrix.module }}:test --stacktrace --no-daemon
3236

3337
# Another job for asserting our linting rules
3438
ktlint:

.github/workflows/android-master.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
# The type of runner that the job will run on
1717
runs-on: ubuntu-22.04
1818

19+
strategy:
20+
matrix:
21+
module: [ :sdk:core, :sdk:analytics, :sdk:forms, :sdk:push-fcm ]
22+
1923
steps:
2024
# Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it
2125
- uses: actions/checkout@v4
@@ -30,7 +34,8 @@ jobs:
3034

3135
# Call Gradle to run the unit tests
3236
- name: Unit Tests
33-
run: ./gradlew test --stacktrace --no-daemon
37+
run: ./gradlew {{ matrix.module }}:test --stacktrace --no-daemon
38+
3439
# Another job for asserting our linting rules
3540
ktlint:
3641
name: Run ktlintCheck
@@ -53,6 +58,7 @@ jobs:
5358
# Call Gradle to run ktlint check
5459
- name: KtlintCheck
5560
run: bash ./gradlew ktlintCheck
61+
5662
# Another job for building our SDK's AAR file
5763
aar:
5864
name: Generate AAR
@@ -82,4 +88,3 @@ jobs:
8288
name: sdk
8389
path: app/build/outputs/aar/debug/aar-debug.aar
8490
overwrite: true
85-

0 commit comments

Comments
 (0)