-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 940 Bytes
/
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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.14.2
uses: actions/setup-node@v1
with:
node-version: 16.14.2
- name: Install dependencies
run: npm i
- name: Lint
run: npm run lint
build_lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.14.2
uses: actions/setup-node@v1
with:
node-version: 16.14.2
- name: Install dependencies
run: npm i
- name: build
run: npm run build