mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-06-19 12:28:21 -06:00
PR-440978: Adding Cypress Component Testing.
This commit is contained in:
14
.github/workflows/npm-publish.yml
vendored
14
.github/workflows/npm-publish.yml
vendored
@ -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
|
||||
|
13
.github/workflows/npm-test.yml
vendored
13
.github/workflows/npm-test.yml
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user