Skip to content

Commit

Permalink
test(cy): components in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Jan 18, 2024
1 parent fa145e8 commit e1d33e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit e1d33e0

Please sign in to comment.