mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 20:38:31 -06:00
PR-060245: updating packages.
This commit is contained in:
38
.github/workflows/main-workflow.yml
vendored
38
.github/workflows/main-workflow.yml
vendored
@ -11,8 +11,8 @@ on:
|
||||
|
||||
# Define the jobs that run as part of the workflow
|
||||
jobs:
|
||||
# Job to run tests
|
||||
test:
|
||||
# Job to run unit tests
|
||||
unit-front-end-testing:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@ -29,8 +29,21 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
|
||||
# Job to run Cypress tests
|
||||
cypress-run:
|
||||
# Job to run Cypress component tests
|
||||
cypress-components-testing:
|
||||
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
|
||||
|
||||
# Job to run Cypress End to End tests
|
||||
end-to-end-testing:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PORT: 3000
|
||||
@ -45,23 +58,10 @@ jobs:
|
||||
build: npm run build
|
||||
start: npm start
|
||||
|
||||
# Job to run Cypress component tests
|
||||
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
|
||||
|
||||
# Job to build the package
|
||||
test-build-package:
|
||||
if: github.ref != 'refs/heads/master'
|
||||
needs: [ test, cypress-run, cypress-run-component ]
|
||||
needs: [ unit-front-end-testing, cypress-components-testing, end-to-end-testing ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -75,7 +75,7 @@ jobs:
|
||||
# Job to publish the package to NPM
|
||||
publish-npm:
|
||||
if: github.ref == 'refs/heads/master'
|
||||
needs: [ test, cypress-run, cypress-run-component ]
|
||||
needs: [ unit-front-end-testing, cypress-components-testing, end-to-end-testing ]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
Reference in New Issue
Block a user