generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 58
37 lines (35 loc) · 1.1 KB
/
license-scanning-node.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
name: License Scanning for Node.js
on:
schedule:
- cron: '0 8,18 * * 1-5'
push:
paths:
- '**/package-json.lock'
- '**/package.json'
- '.github/workflows/license-scanning-node.yml'
jobs:
scan:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.x']
module-folder: [
'reference-data',
'trade-feed',
'web-front-end/angular',
'web-front-end/proxy',
'web-front-end/react'
]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install --omit=dev
# - run: yarn install --production --frozen-lockfile
working-directory: ${{ matrix.module-folder }}
- run: npm install -g node-license-validator
working-directory: ${{ matrix.module-folder }}
- run: node-license-validator . --allow-licenses Apache-2.0 MIT BSD-2-Clause BSD BSD-3-Clause Unlicense ISC
working-directory: ${{ matrix.module-folder }}