You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Set up Python ${{ matrix.python-version }}
33
+
uses: actions/setup-python@v2
34
+
with:
35
+
python-version: ${{ matrix.python-version }}
36
+
# ScanCode
37
+
- name: Self-configure scancode
38
+
working-directory: ./scancode-toolkit
39
+
run: ./scancode --help
40
+
- name: Run Scan code on pr ref
41
+
run: for filename in $(< fileList.txt); do ./scancode-toolkit/scancode -l -n 30 --json-pp - ./sdkmain/$filename | grep short_name | sort | uniq >> old-licenses.txt; done
42
+
- name: Run Scan code on main
43
+
run: for filename in $(< fileList.txt); do ./scancode-toolkit/scancode -l -n 30 --json-pp - ./new-ref/$filename | grep short_name | sort | uniq >> new-licenses.txt; done
44
+
# compare
45
+
- name: License test
46
+
run: if ! cmp old-licenses.txt new-licenses.txt; then echo "Licenses differ! Failing."; exit -1; else echo "Licenses are the same. Success."; exit 0; fi
0 commit comments