Skip to content

feat(themes): align component themes with schema tokens #38122

feat(themes): align component themes with schema tokens

feat(themes): align component themes with schema tokens #38122

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
permissions:
contents: read
on:
push:
branches: [ master, '[0-9]+.[0-9]+.x' ]
pull_request:
branches: [ master, '[0-9]+.[0-9]+.x' ]
jobs:
# Lint, builds and the Node-only tests. The browser suites run in the coverage job below, in parallel.
build-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
- name: Use Node.js 24
uses: actions/setup-node@v7.1.0
with:
node-version: 24.x
cache: 'npm'
- name: Install packages
run: npm ci
- name: Lint Lib
run: npm run lint:lib
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Lint i18n
run: npm run lint:i18n
- name: Lint Extras
run: npm run lint:extras
- name: Build Lib
run: npm run build:lib
- name: Build Extras
run: npm run build:extras
- name: Build Schematics
run: npm run build:schematics
- name: Build Migrations
run: npm run build:migrations
- name: Build TypeDoc & SassDoc
run: |
npm run build:docs
- name: Build Elements
run: npm run elements:configure && npm run build:elements
- name: Check for Elements config changes
run: |
if [ -n "$(git status --porcelain -- projects/igniteui-angular-elements/**/elements.config.ts)" ]; then
echo "Error: There are changes to the Elements config. Run 'npm run elements:configure' and commit." >&2
exit 1
fi
- name: Build i18n & validate output
run: |
npm run build:i18n
npm run test:i18n:dist
- name: Test Styles, Schematics, i18n and SSR
run: |
npm run test:styles
npm run test:schematics
npm run test:i18n
npm run test:ssr
env:
NODE_OPTIONS: --max_old_space_size=4096 --no-experimental-strip-types
TZ: America/New_York
- name: Bundle Tree-Shake & SSR Test
run: npm run build:bundletest
# Browser suites, run once with coverage. They build the specs from source,
# so they don't wait for the builds above.
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
- name: Use Node.js 24
uses: actions/setup-node@v7.1.0
with:
node-version: 24.x
cache: 'npm'
- name: Install packages
run: npm ci
- name: Get Playwright version
id: playwright
run: echo "version=$(node -p "require('playwright-core/package.json').version")" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v6.1.0
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium
- name: Test Libraries with coverage
run: |
npm run test:coverage
npm run test:extras -- --coverage --coverage-reporters=lcovonly
npm run test:elements -- --coverage --coverage-reporters=lcovonly
env:
NODE_OPTIONS: --max_old_space_size=4096 --no-experimental-strip-types
TZ: America/New_York
- name: Publish to coveralls.io
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
format: lcov
files: >-
coverage/igniteui-angular/lcov.info
coverage/igniteui-angular-extras/lcov.info
coverage/igniteui-angular-elements/lcov.info