Skip to content

Commit

Permalink
Configure cypress-split
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Jan 26, 2025
1 parent 71eca10 commit 2df4890
Show file tree
Hide file tree
Showing 4 changed files with 3,660 additions and 43 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: End-to-end tests
on: push
jobs:
cypress-run:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
containers: [1, 2]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
- name: Run Cypress tests in parallel 🧪
uses: cypress-io/github-action@v6
env:
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
6 changes: 6 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
const { defineConfig } = require("cypress")

const cypressSplit = require("cypress-split")

module.exports = defineConfig({
viewportHeight: 1024,
viewportWidth: 1700,
e2e: {
fixturesFolder: false,
setupNodeEvents(on, config) {
cypressSplit(on, config)
return config
}
},
})
Loading

0 comments on commit 2df4890

Please sign in to comment.