adding put and delete api tests in simple api test #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Parallel Test Run | |
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 | |
- name: Add to cart Test Report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Mochawesome html report - Add to cart | |
path: cypress/reports/html | |
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 | |
- name: Register Test Report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Mochawesome html report - Register | |
path: cypress/reports/html |