Skip to content

Commit 643c213

Browse files
committed
Fix parallel run
1 parent 0c52045 commit 643c213

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/sonarqube.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
build:
1212
name: Scan
1313
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
containers: [0, 1, 2, 3, 4] # Distribuirá la carga entre 5 contenedores para paralelismo
1814

1915
steps:
2016
########################################
@@ -88,12 +84,12 @@ jobs:
8884
spec: "tests/e2e/**/*"
8985
record: true
9086
parallel: true # Habilita el paralelismo
91-
group: "CI - Chrome - Container ${{ matrix.containers }}" # Identificar grupo de pruebas por contenedor
87+
group: "CI - Chrome" # Grupo de ejecución para Cypress
9288
env:
9389
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
9490
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
9591
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
96-
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
92+
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
9793

9894
- name: Upload Cypress Screenshots
9995
uses: actions/upload-artifact@v4
@@ -111,12 +107,13 @@ jobs:
111107

112108
- name: Prepare coverage
113109
working-directory: screen-builder
114-
run: cp .nyc_output/out.json coverage/coverage-${{ matrix.containers }}.json
110+
run: cp .nyc_output/out.json coverage/coverage.json
111+
115112
- name: Archive code coverage
116113
uses: actions/upload-artifact@v4
117114
with:
118-
name: coverage-${{ matrix.containers }}
119-
path: ./screen-builder/coverage/coverage-${{ matrix.containers }}.json
115+
name: coverage
116+
path: ./screen-builder/coverage/coverage.json
120117

121118
- name: Create coverage report
122119
working-directory: screen-builder

0 commit comments

Comments
 (0)