-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (33 loc) · 730 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (33 loc) · 730 Bytes
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
---
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: validate renovate.json
run: |
jq . < renovate.json
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: install
run: npm ci
- name: build
run: npm run compile