-
Notifications
You must be signed in to change notification settings - Fork 347
54 lines (44 loc) · 1.21 KB
/
license.yaml
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
49
50
51
52
53
name: CI
on:
pull_request
env:
ALLOWED_LICENSES: >
MIT;
BSD;
ISC;
Apache-2.0;
MPL-2.0;
LGPL-3.0;
LGPL-3.0-or-later;
CC0-1.0;
CC-BY-3.0;
CC-BY-4.0;
Python-2.0;
PSF;
Public Domain;
WTFPL;
Unlicense;
# It has to be one line, there must be no space between packages.
EXCLUDE_PACKAGES: [email protected];[email protected];
jobs:
license-check:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.15.1'
- name: Install yarn
run: npm install -g yarn license-checker
- name: Install dependencies in ethereum
run: cd ethereum && yarn install
- name: Check licenses in ethereum
working-directory: ethereum
run: npx license-checker --json --onlyAllow="$ALLOWED_LICENSES" --excludePackages "$EXCLUDE_PACKAGES"
- name: Install dependencies in zksync
run: cd zksync && yarn install
- name: Check licenses in zksync
working-directory: zksync
run: npx license-checker --json --onlyAllow="$ALLOWED_LICENSES" --excludePackages "$EXCLUDE_PACKAGES"