Skip to content

Commit

Permalink
Parallel run with two jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mishal.alexander committed Jan 4, 2024
1 parent 142f6bf commit 1bce143
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/parallel-test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Regression End-to-end tests
on: push
jobs:
add-to-cart-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

# Install npm dependencies, cache them correctly
# and run all Cypress tests

- name: Cypress run
uses: cypress-io/github-action@v5
with:
command: npm run test:addToCart
register-flow-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

# Install npm dependencies, cache them correctly
# and run all Cypress tests

- name: Cypress run
uses: cypress-io/github-action@v5
with:
command: npm run test:registerTest
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Sample framework created using Cypress",
"main": "index.js",
"scripts": {
"test:addToCart": "npx cypress run --spec cypress/e2e/tests/addToCartTest.cy.js"
"test:addToCart": "npx cypress run --spec cypress/e2e/tests/addToCartTest.cy.js",
"test:registerTest": "npx cypress run --spec cypress/e2e/tests/registerTest.cy.js"
},
"author": "Mishal Alexander",
"repository": {
Expand Down

0 comments on commit 1bce143

Please sign in to comment.