PR-440978: Adding Cypress Component Testing.

This commit is contained in:
2023-03-03 08:27:25 -06:00
parent d76372d1e0
commit 24987d7c09
17 changed files with 2252 additions and 69 deletions

View File

@ -14,9 +14,19 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps
- run: npm test
cypress-run:
runs-on: ubuntu-latest
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 # use the explicit version number
with:
start: npm run cy:run
publish-npm:
needs: build
needs: [ build, cypress-run ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -20,8 +20,19 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci --legacy-peer-deps
- run: npm test
cypress-run:
runs-on: ubuntu-latest
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 # use the explicit version number
with:
start: npm run cy:run
test-build-package:
needs: test
needs: [ test, cypress-run ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3