mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 04:39:19 -06:00
Fix workflow matrix to invoke correct Gradle test tasks
The workflow was calling non-existent tasks testStandardDebugShard1-4, but the Gradle build defines testShard1Vault, testShard2Platform, testShard3Auth, and testShard4Data. Added matrix.include mapping to resolve task names correctly and enable fail-fast: false for resilience. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1c410b8295
commit
fc7dfc4a4c
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -151,8 +151,22 @@ jobs:
|
||||
permissions:
|
||||
packages: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [1, 2, 3, 4]
|
||||
include:
|
||||
- shard: 1
|
||||
shard-name: "Vault"
|
||||
test-task: "testShard1Vault"
|
||||
- shard: 2
|
||||
shard-name: "Platform"
|
||||
test-task: "testShard2Platform"
|
||||
- shard: 3
|
||||
shard-name: "Auth"
|
||||
test-task: "testShard3Auth"
|
||||
- shard: 4
|
||||
shard-name: "Data"
|
||||
test-task: "testShard4Data"
|
||||
|
||||
steps:
|
||||
- name: Check out repo
|
||||
@ -188,10 +202,10 @@ jobs:
|
||||
distribution: "temurin"
|
||||
java-version: ${{ env._JAVA_VERSION }}
|
||||
|
||||
- name: Test app module shard ${{ matrix.shard }} and generate coverage
|
||||
- name: Test app shard ${{ matrix.shard }} (${{ matrix.shard-name }})
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: ./gradlew :app:testStandardDebugShard${{ matrix.shard }} :app:koverXmlReportStandardDebug
|
||||
run: ./gradlew :app:${{ matrix.test-task }} :app:koverXmlReportStandardDebug
|
||||
|
||||
- name: Upload app test reports (shard ${{ matrix.shard }})
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user