Skip to content

feat(demos): add compared to WC section with samples to compare components #28064

feat(demos): add compared to WC section with samples to compare components

feat(demos): add compared to WC section with samples to compare components #28064

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
on:
push:
branches: [ master, '[0-9]+.[0-9]+.x' ]
pull_request:
branches: [ master, '[0-9]+.[0-9]+.x' ]
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
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: Build Lib
run: npm run build:lib
- name: Build Schematics
run: npm run build:schematics
- name: Build Migrations
run: npm run build:migrations
- name: Build TypeDoc & SassDoc
run: |
npm run build:typedoc:en:production
npm run build:sassdoc:en:production
- name: Test
run: |
npm run test:lib
npm run test:styles
npm run test:schematics
npm run test:i18n
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Build i18n & validate output
run: |
npm run build:i18n
npm run test:i18n:dist
- 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: Test Elements
run: npm run test:elements
- name: Bundle Tree-Shake & SSR Test
run: npm run build:bundletest
- name: Publish to coveralls.io
if: github.repository == 'IgniteUI/igniteui-angular' && matrix.node-version == '20.x'
uses: coverallsapp/github-action@v2.3.4
with:
github-token: ${{ github.token }}