Skip to content

NAC-326 - incorrect value recomputevideoinfo video rendition #534

NAC-326 - incorrect value recomputevideoinfo video rendition

NAC-326 - incorrect value recomputevideoinfo video rendition #534

Workflow file for this run

name: Unit-test
on:
pull_request:
branches:
- dev
workflow_call:
inputs:
branch:
description: 'The current branch'
default: dev
type: string
required: false
secrets:
NPM_PACKAGES_TOKEN:
description: 'NPM_PACKAGES_TOKEN'
required: true
GIT_TOKEN:
description: 'GIT_TOKEN'
required: true
env:
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'dev' }}
jobs:
utest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}
- name: Remove .npmrc file if exists
run: |
if [ -f .npmrc ]; then
rm .npmrc
fi
- uses: actions/setup-node@v4
with:
registry-url: 'https://packages.nuxeo.com/repository/npm-public/'
node-version: 20
scope: '@nuxeo'
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install @angular/cli
run: npm install -g @angular/cli
- name: Install Dependencies
working-directory: nuxeo-admin-console-web/angular-app
run: npm install
- name: Install Chrome and Chromedriver
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 120
install-chromedriver: true
- name: Verify Chrome installation
run: google-chrome --version
- name: Unit tests
working-directory: nuxeo-admin-console-web/angular-app
run: |
xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" npm test