forked from firebase/snippets-web
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 851 Bytes
/
test.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
name: CI Tests
on:
- pull_request
- push
env:
CI: true
jobs:
unit:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
- name: Install dependencies
run: |
npm install
npm run bootstrap
- name: Lint snippets
run: npm run lint
- name: Compile snippets
run: npm run compile
- name: Check generated snippets
run: |
npm run snippets
./scripts/checkdirty.sh