Skip to content

Commit 8a68844

Browse files
authored
Merge pull request #34 from fosslight/develop
Move user-guide link to FOSSLight guide & Add test workflow for windows and MacOS environment
2 parents 69090f0 + aa20ccd commit 8a68844

File tree

8 files changed

+590
-544
lines changed

8 files changed

+590
-544
lines changed

.github/workflows/pull-request.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
build:
10+
build_ubuntu:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
@@ -27,6 +27,54 @@ jobs:
2727
- name: Run Tox
2828
run: |
2929
tox -e run_ubuntu
30+
build_windows:
31+
runs-on: windows-latest
32+
strategy:
33+
matrix:
34+
python-version: [3.6]
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Install dependencies
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install tox
45+
pip install tox-wheel
46+
- name: Run Tox
47+
run: |
48+
tox -e run_windows
49+
build_macos:
50+
runs-on: macos-latest
51+
strategy:
52+
matrix:
53+
python-version: [3.6]
54+
steps:
55+
- uses: actions/checkout@v2
56+
- name: Set up Python ${{ matrix.python-version }}
57+
uses: actions/setup-python@v2
58+
with:
59+
python-version: ${{ matrix.python-version }}
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install fosslight_dependency
64+
sudo npm install -g license-checker
65+
- name: Install Pod
66+
working-directory: ./tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips
67+
run: pod install --clean-install
68+
- name: Run Test
69+
run: |
70+
fosslight_dependency -p tests/test_pypi -o tests/result/pypi
71+
fosslight_dependency -p tests/test_npm1 -o tests/result/npm1
72+
fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm
73+
fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1
74+
fosslight_dependency -p tests/test_maven2 -o tests/result/maven2
75+
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
76+
fosslight_dependency -p tests/test_pub -o tests/result/pub
77+
fosslight_dependency -p tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips -o tests/result/Cocoapods
3078
reuse:
3179
runs-on: ubuntu-latest
3280
steps:

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,7 @@ License: Apache-2.0
6161
Files: tests/test_pypi/*
6262
Copyright: 2021 LG Electronics
6363
License: Apache-2.0
64+
65+
Files: tests/test_cocoapods/cocoapods-tips*
66+
Copyright: 2017 ClintJang
67+
License: MIT

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,24 @@ Currently, it supports the following package managers.
2020
- [Pub](https://pub.dev/) (Dart with flutter)
2121
- [Cocoapods](https://cocoapods.org/) (Swift/Obj-C)
2222

23+
## 🧐 How to analyze the dependencies
24+
25+
FOSSLight Dependency Scanner utilizes the open source software for analyzing each package manager dependencies. We choose the open source software for each package manager that shows not only the direct dependencies but also the transitive dependencies including the information of dependencies such as oss name, oss version and license name.
26+
27+
Each package manager uses the results of the following software:
28+
29+
- NPM : [NPM License Checker](https://github.com/davglass/license-checker)
30+
- Pypi : [pip-licenses](https://github.com/raimon49/pip-licenses)
31+
- Gradle : [License Gradle Plugin](https://github.com/hierynomus/license-gradle-plugin)
32+
- Maven : [license-maven-plugin](https://github.com/mojohaus/license-maven-plugin)
33+
- Pub : [flutter_oss_licenses](https://github.com/espresso3389/flutter_oss_licenses)
34+
35+
Because we utilizes the different open source software to analyze the dependencies of each package manager, you need to set up the **Prerequisite** steps in [User guide](https://fosslight.org/fosslight-guide-en/scanner/2_dependency.html) according to package manager to analyze.
36+
2337
## 📖 User Guide
2438

25-
Please see the [**User Guide**](https://github.com/fosslight/fosslight_dependency_scanner/blob/main/docs/user-guide.md) for more information on how to install and run it.
39+
We describe the user guide in the FOSSLight guide page.
40+
Please see the [**User Guide**](https://fosslight.org/fosslight-guide-en/scanner/2_dependency.html) for more information on how to install and run it.
2641

2742
## 👏 Contributing Guide
2843

docs/user-guide.md

Lines changed: 0 additions & 269 deletions
This file was deleted.

0 commit comments

Comments
 (0)