diff --git a/.github/workflows/test-shard-template.yml b/.github/workflows/test-shard-template.yml index 0133f788e96..f52980c9e2a 100644 --- a/.github/workflows/test-shard-template.yml +++ b/.github/workflows/test-shard-template.yml @@ -3,6 +3,9 @@ name: Test Template on: workflow_call: inputs: + project: + required: true + type: string shard: required: true type: number @@ -12,6 +15,7 @@ on: jobs: test: + name: Test ${{ inputs.shard }}/${{ inputs.totalShards }} in project "${{ inputs.project }}" runs-on: ubuntu-latest steps: - name: Check out Git repository @@ -23,4 +27,4 @@ jobs: - name: Install Node.js dependencies run: npm ci - name: Run tests - run: npx vitest --project main --shard=${{ inputs.shard }}/${{ inputs.totalShards }} ${{ !runner.debug && '--silent' || '' }} + run: npx vitest --project ${{ inputs.project }} --shard=${{ inputs.shard }}/${{ inputs.totalShards }} ${{ !runner.debug && '--silent' || '' }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 54bb27fe8c9..66cc3ecc139 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,5 +42,6 @@ jobs: shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] uses: ./.github/workflows/test-shard-template.yml with: + project: main shard: ${{ matrix.shard }} totalShards: 10 \ No newline at end of file