From e1d33e09bdbea42a3316dbc5d77d69b26555b93e Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 18 Jan 2024 09:01:29 +0100 Subject: [PATCH] test(cy): components in CI Signed-off-by: Max --- .github/workflows/cypress.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index cbb7f30bc0d..9ff526dd1b3 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -83,7 +83,7 @@ jobs: fail-fast: false matrix: node-version: [16] - containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] + containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 'component'] php-versions: [ '8.1' ] run-in-parallel: - false # only for PRs: ${{ !!github.head_ref }} @@ -155,6 +155,7 @@ jobs: parallel: '${{ !!matrix.run-in-parallel }}' # only on pull requests wait-on: '${{ env.CYPRESS_baseUrl }}' working-directory: 'apps/${{ env.APP_NAME }}' + component: ${{ matrix.containers == 'component' }} config: defaultCommandTimeout=10000,video=false tag: ${{ matrix.run-in-parallel && github.event_name }} env: @@ -163,13 +164,13 @@ jobs: COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} npm_package_name: ${{ env.APP_NAME }} - SPLIT: ${{ strategy.job-total }} + SPLIT: '${{ strategy.job-total - 1 }}' # one job is for compent testing SPLIT_INDEX: ${{ strategy.job-index }} - name: Upload test failure screenshots uses: actions/upload-artifact@v3 - if: failure() + if: failure() && matrix.containers != 'component' with: name: Upload screenshots path: | @@ -179,7 +180,7 @@ jobs: - name: Upload nextcloud logs uses: actions/upload-artifact@v3 - if: failure() + if: failure() && matrix.containers != 'component' with: name: cypress-${{ matrix.containers }}.log path: data/nextcloud.log