-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.05 KB
/
main.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
48
# GitHub Actions docs
# https://help.github.com/en/articles/about-github-actions
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI
on: [push]
jobs:
test-lib:
name: Testing npm package
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.8
uses: actions/setup-node@v1
with:
node-version: 12.8
- name: Install dependencies
run: npm install
- name: Lint library
run: npm run lint:lib
- name: Build library
run: npm run build:lib
- name: Test library
run: npm run test:lib-ci
test-demo-page:
name: Testing demo page
needs: test-lib
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.8
uses: actions/setup-node@v1
with:
node-version: 12.8
- name: Install dependencies
run: npm install
- name: Lint library
run: npm run lint
# - name: Build library
# run: npm run build -- --prod
# - name: Test
# run: npm run test-ci