Update createdist.yml #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, lts/*] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- name: Build libs and demo | |
run: npm run build:demo | |
- name: Test libs | |
run: | | |
npm run test:core -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI | |
npm run test:bs3 -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI | |
npm run test:bs4 -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI | |
npm run test:material -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI | |
- name: Publish code coverage | |
run: npm run publish:coverage |