forked from hamzahamidi/ajsf
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.06 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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