-
Notifications
You must be signed in to change notification settings - Fork 486
47 lines (36 loc) · 972 Bytes
/
build.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
40
41
42
43
44
45
46
47
---
name: build
on:
push:
branches:
- master
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Pack library
run: npm pack
# test demo
- name: Install demo dependencies
working-directory: ./demo
run: npm install
- name: Install current angular-datatables to demo
working-directory: ./demo
run: rm -rf node_modules/angular-datatables && npm install --no-save --no-package-lock ../angular-datatables-*.tgz
- name: Run demo test
working-directory: ./demo
run: npm run test-ci