* build(deps-dev): update storybook from 8.4.7 to 8.5.6 * build(deps): update tiptap from 2.11.2 to 2.11.5 * build(deps-dev): update eslint stuff to latest * build(deps): update element-internals-polyfill from 1.3.12 to 1.3.13 * build(deps): update marked from 15.0.6 to 15.0.7 * build(deps-dev): update vite from 5.4.14 to 6.1.0 * build(deps-dev): update globals to 15.15.0 (eslint dependency) * build(deps): update icon libraries to latest * build(deps-dev): update prettier from 3.4.2 to 3.5.1 * chore: generate consts * build(deps-dev): update test-related libraries * feat: copy over code from the tiny base64-js library because it is not exported as esm and has not been updated in 4 years * build(deps-dev): remove dependency from base64-js * build(deps-dev): upgrade rollup dependencies * test: disable tests for tinyce * build(deps-dev): update @babel/core to 7.26.9 * build(deps): update storybook to latest * build(deps-dev): update types * build(deps-dev): update typedoc from 0.27.6 to 0.27.7 * build(deps-dev): update @rollup/plugin-commonjs to latest * build(deps): import tiny as default and re-export as module and default to make everyone happy (and avoid commonjs pitfalls) * build: remove dependency on commonjs to build externals * build(deps-dev): uninstall @rollup/plugin-commonjs as it is no longer needed * test: reenable tinymce tests * fix: sets a default label this mistake was highlighted by the test runner * test: reenable tinymce tests * build: ignores autogenerated test file * build: adds github error logging to icon generator * build: log as error * build: adds tests for generate:* scripts * build: optimises icons with svgo to remove useless things like comments this also ensures that icons are unchanged when we upgrade icon library packages as they would normally include things like versions as comments in the files
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
name: Test Backoffice
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- contrib
|
|
- release/*
|
|
- v*/dev
|
|
paths:
|
|
- src/Umbraco.Web.UI.Client/**
|
|
pull_request:
|
|
branches:
|
|
- contrib
|
|
- release/*
|
|
- v*/dev
|
|
paths:
|
|
- src/Umbraco.Web.UI.Client/**
|
|
|
|
# Allows GitHub to use this workflow to validate the merge queue
|
|
merge_group:
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: src/Umbraco.Web.UI.Client
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: src/Umbraco.Web.UI.Client/.nvmrc
|
|
cache: npm
|
|
cache-dependency-path: ./src/Umbraco.Web.UI.Client/package-lock.json
|
|
- run: npm ci --no-audit --no-fund --prefer-offline
|
|
- name: Check for circular dependencies
|
|
run: node devops/circular/index.js src
|
|
- run: npm run lint:errors
|
|
- run: npm run generate:tsconfig
|
|
- run: npm run generate:icons
|
|
- run: npm run build:for:cms
|
|
- run: npm run check:paths
|
|
- run: npm run generate:jsonschema:dist
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: src/Umbraco.Web.UI.Client
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: src/Umbraco.Web.UI.Client/.nvmrc
|
|
cache: npm
|
|
cache-dependency-path: ./src/Umbraco.Web.UI.Client/package-lock.json
|
|
- run: npm ci --no-audit --no-fund --prefer-offline
|
|
- run: npx playwright install --with-deps
|
|
- run: npm test
|