mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 13:57:03 -06:00
Merge Agent 2: Convert app test to matrix strategy
This commit is contained in:
commit
b85cafa190
17
.github/workflows/test.yml
vendored
17
.github/workflows/test.yml
vendored
@ -146,10 +146,13 @@ jobs:
|
|||||||
cxf/build/reports/kover/
|
cxf/build/reports/kover/
|
||||||
|
|
||||||
test-app:
|
test-app:
|
||||||
name: Test App Module
|
name: Test App Module (Shard ${{ matrix.shard }})
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
permissions:
|
permissions:
|
||||||
packages: read
|
packages: read
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
shard: [1, 2, 3, 4]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
@ -185,23 +188,23 @@ jobs:
|
|||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: ${{ env._JAVA_VERSION }}
|
java-version: ${{ env._JAVA_VERSION }}
|
||||||
|
|
||||||
- name: Test app module and generate coverage
|
- name: Test app module shard ${{ matrix.shard }} and generate coverage
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./gradlew :app:testStandardDebug :app:koverXmlReportStandardDebug
|
run: ./gradlew :app:testStandardDebugShard${{ matrix.shard }} :app:koverXmlReportStandardDebug
|
||||||
|
|
||||||
- name: Upload app test reports
|
- name: Upload app test reports (shard ${{ matrix.shard }})
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: test-reports-app
|
name: test-reports-app-shard-${{ matrix.shard }}
|
||||||
path: app/build/reports/tests/
|
path: app/build/reports/tests/
|
||||||
|
|
||||||
- name: Upload app coverage data
|
- name: Upload app coverage data (shard ${{ matrix.shard }})
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: coverage-app
|
name: coverage-app-shard-${{ matrix.shard }}
|
||||||
path: app/build/reports/kover/
|
path: app/build/reports/kover/
|
||||||
|
|
||||||
test-authenticator:
|
test-authenticator:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user