8383 fail-fast : false
8484 matrix :
8585 node-version : [16]
86- containers : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
86+ containers : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 'component' ]
8787 php-versions : [ '8.1' ]
8888 run-in-parallel :
8989 - false # only for PRs: ${{ !!github.head_ref }}
@@ -155,6 +155,7 @@ jobs:
155155 parallel : ' ${{ !!matrix.run-in-parallel }}' # only on pull requests
156156 wait-on : ' ${{ env.CYPRESS_baseUrl }}'
157157 working-directory : ' apps/${{ env.APP_NAME }}'
158+ component : ${{ matrix.containers == 'component' }}
158159 config : defaultCommandTimeout=10000,video=false
159160 tag : ${{ matrix.run-in-parallel && github.event_name }}
160161 env :
@@ -163,13 +164,13 @@ jobs:
163164 COMMIT_INFO_SHA : ${{ github.event.pull_request.head.sha }}
164165 CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
165166 npm_package_name : ${{ env.APP_NAME }}
166- SPLIT : ${{ strategy.job-total }}
167+ SPLIT : ' ${{ strategy.job-total - 1 }} ' # one job is for compent testing
167168 SPLIT_INDEX : ${{ strategy.job-index }}
168169
169170
170171 - name : Upload test failure screenshots
171172 uses : actions/upload-artifact@v3
172- if : failure()
173+ if : failure() && matrix.containers != 'component'
173174 with :
174175 name : Upload screenshots
175176 path : |
@@ -179,7 +180,7 @@ jobs:
179180
180181 - name : Upload nextcloud logs
181182 uses : actions/upload-artifact@v3
182- if : failure()
183+ if : failure() && matrix.containers != 'component'
183184 with :
184185 name : cypress-${{ matrix.containers }}.log
185186 path : data/nextcloud.log
0 commit comments