Skip to content

Commit

Permalink
Improve Cypress Test runner performance with parallelization (#3817)
Browse files Browse the repository at this point in the history
* test: only run integration tests

* test: only run integration tests

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* tests: update test branches
  • Loading branch information
bdbch authored Mar 3, 2023
1 parent 668c2a6 commit 43970fd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop

jobs:
lint:
Expand Down Expand Up @@ -76,6 +79,18 @@ jobs:
strategy:
matrix:
node-version: [16]
test-spec:
- { name: "Integration", spec: "./tests/cypress/integration/**/*.spec.{js,ts}" }
#- { name: "Demos/Commands", spec: "./demos/src/Commands/**/*.spec.{js,ts}" }
- { name: "Demos/Examples", spec: "./demos/src/Examples/**/*.spec.{js,ts}" }
- { name: "Demos/Experiments", spec: "./demos/src/Experiments/**/*.spec.{js,ts}" }
- { name: "Demos/Extensions", spec: "./demos/src/Extensions/**/*.spec.{js,ts}" }
- { name: "Demos/GuideContent", spec: "./demos/src/GuideContent/**/*.spec.{js,ts}" }
- { name: "Demos/GuideGettingStarted", spec: "./demos/src/GuideGettingStarted/**/*.spec.{js,ts}" }
#- { name: "Demos/GuideNodeViews", "./demos/src/GuideNodeViews/**/*.spec.{js,ts}" }
- { name: "Demos/Marks", spec: "./demos/src/Marks/**/*.spec.{js,ts}" }
- { name: "Demos/Nodes", spec: "./demos/src/Nodes/**/*.spec.{js,ts}" }
#- { name: "Demos/Overview", spec: "./demos/src/Overview/**/*.spec.{js,ts}" }

steps:
- uses: actions/[email protected]
Expand All @@ -93,13 +108,14 @@ jobs:
id: build-packages
run: npm run build:pm

- name: Run tests with Cypress
- name: Test ${{ matrix.test-spec.name }}
id: cypress
uses: cypress-io/[email protected]
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
wait-on: 'http://localhost:3000'
spec: ${{ matrix.test-spec.spec }}
project: ./tests
browser: chrome
quiet: true
Expand Down
11 changes: 0 additions & 11 deletions demos/src/Commands/InsertContent/Vue/index.spec.js

This file was deleted.

5 changes: 0 additions & 5 deletions demos/src/Overview/Installation/Vue/index.spec.js

This file was deleted.

0 comments on commit 43970fd

Please sign in to comment.