PR-060245: updating packages.

This commit is contained in:
2023-11-20 17:13:08 +00:00
parent 8f3474a1cc
commit 7c22fca4bd
4 changed files with 178 additions and 178 deletions

View File

@ -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