Skip to content

CLDR-17492 deps: update js deps #1056

CLDR-17492 deps: update js deps

CLDR-17492 deps: update js deps #1056

Workflow file for this run

name: JavaScript Tests
on:
push:
paths:
- '.node-version'
- 'tools/cldr-apps/js/**'
- '.github/workflows/js.yml'
pull_request:
paths:
- '.node-version'
- 'tools/cldr-apps/js/**'
- '.github/workflows/js.yml'
jobs:
fetest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: false # not needed for this job, as we don’t currently do a Java build
- uses: nodenv/actions/node-version@v4 # setup using .node-version
- name: Cache webpack
uses: actions/cache@v4
with:
path: tools/cldr-apps/target/webpack_cache
key: ${{ runner.os }}-webpack-${{ hashFiles('tools/cldr-apps/package*') }}-${{ hashFiles('tools/cldr-apps/src/**') }}
restore-keys: |
${{ runner.os }}-webpack-
webpack-
- name: Cache npm repository
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-lint-${{ hashFiles('.github/workflows/js.yml') }}
restore-keys: |
${{ runner.os }}-lint-
lint-
- name: Prepare puppeteer deps
run: sudo apt-get install -q -y ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
- name: Prepare JS tests
run: (cd tools/cldr-apps/js && npm ci)
- name: Run JS tests
# stopgap: fail this if it takes too long
timeout-minutes: 10
run: (cd tools/cldr-apps/js && (npm t || npm t))
- name: Run Webpack production build
run: (cd tools/cldr-apps/js && npm run build)