Skip to content

Commit

Permalink
ci(cypress): Use cypress-split
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Oct 19, 2023
1 parent d1c6e6f commit 5182e53
Show file tree
Hide file tree
Showing 4 changed files with 1,914 additions and 73 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,19 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v6
with:
record: true
parallel: true
record: false
parallel: false
wait-on: '${{ env.CYPRESS_baseUrl }}'
working-directory: 'apps/${{ env.APP_NAME }}'
config: defaultCommandTimeout=10000,video=false
tag: ${{ github.event_name }}
tag: ${{ false && github.event_name }}
env:
# https://github.com/cypress-io/github-action/issues/124
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}

- name: Upload test failure screenshots
uses: actions/upload-artifact@v2
Expand Down
3 changes: 3 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
// the project's config changing)

const browserify = require('@cypress/browserify-preprocessor')
const cypressSplit = require('cypress-split')

module.exports = (on, config) => {
cypressSplit(on, config)

on('file:preprocessor', browserify())

return config
}
Loading

0 comments on commit 5182e53

Please sign in to comment.