mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 04:18:31 -06:00
PR-579798: Adding Component cypress testing.
This commit is contained in:
13
.github/workflows/npm-publish.yml
vendored
13
.github/workflows/npm-publish.yml
vendored
@ -28,8 +28,19 @@ jobs:
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
cypress-run-component:
|
||||
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:
|
||||
component: true
|
||||
publish-npm:
|
||||
needs: [ build, cypress-run ]
|
||||
needs: [ test, cypress-run, cypress-run-component ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
13
.github/workflows/npm-test.yml
vendored
13
.github/workflows/npm-test.yml
vendored
@ -34,8 +34,19 @@ jobs:
|
||||
with:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
cypress-run-component:
|
||||
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:
|
||||
component: true
|
||||
test-build-package:
|
||||
needs: [ test, cypress-run ]
|
||||
needs: [ test, cypress-run, cypress-run-component ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
Reference in New Issue
Block a user