Skip to content

build(deps): Bump the angular-stack group with 5 updates #10216

build(deps): Bump the angular-stack group with 5 updates

build(deps): Bump the angular-stack group with 5 updates #10216

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the sample web ui in a docker container and run tests on the ui isolated from mps and rps
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Cypress CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
actions: read
jobs:
build:
permissions:
contents: read
actions: read
checks: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ matrix.node-version }}
- run: npm install cypress
- run: docker build . --file Dockerfile --tag vprodemo.azurecr.ui/samplewebui:latest
- run: docker run -d -p 4200:80 vprodemo.azurecr.ui/samplewebui:latest
- run: npm run cy-runner
- name: Publish Cypress Test Results
uses: dorny/test-reporter@3d76b34a4535afbd0600d347b09a6ee5deb3ed7f # v2.6.0
if: always()
with:
name: Cypress Tests
path: cypress-ui-test-output-*.xml
reporter: java-junit
fail-on-error: false
- name: Upload Cypress UI Test Results
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: always()
with:
name: sample-web-ui-ui-test
path: cypress-ui-test-output-*.xml
- name: Upload Cypress UI Images
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: always()
with:
name: sample-web-ui-ui-test-screenshots
path: /home/runner/work/sample-web-ui/sample-web-ui/cypress/screenshots/**/*.png