-
Notifications
You must be signed in to change notification settings - Fork 20
90 lines (87 loc) · 3.04 KB
/
pull-request.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Running tests with tox for releasing new version
name: Pull requests fosslight_dependency_scanner
on:
pull_request:
branches:
- '*'
jobs:
check-commit-message:
uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main
secrets:
envPAT: ${{ secrets.GITHUB_TOKEN }}
build_ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
sudo npm install -g license-checker
- name: Run Tox
run: |
tox -e run_ubuntu
build_windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tox
run: |
tox -e run_windows
build_macos:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
sudo npm install -g license-checker
- name: Install Pod
working-directory: ./tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips
run: pod install --clean-install
- name: Run Test
run: |
fosslight_dependency -p tests/test_pypi -o tests/result/pypi
fosslight_dependency -p tests/test_npm1 -o tests/result/npm1
fosslight_dependency -p tests/test_npm2 -o tests/result/npm2 -m npm
fosslight_dependency -p tests/test_maven1/lombok.maven -o tests/result/maven1
fosslight_dependency -p tests/test_maven2 -o tests/result/maven2
fosslight_dependency -p tests/test_gradle/jib -o tests/result/gradle
fosslight_dependency -p tests/test_pub -o tests/result/pub
fosslight_dependency -p tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips -o tests/result/Cocoapods
fosslight_dependency -p tests/test_swift -o tests/result/swift -t ${{ secrets.TOKEN }}
fosslight_dependency -p tests/test_swift2 -o tests/result/swift2 -t ${{ secrets.TOKEN }}
fosslight_dependency -p tests/test_swift2 -o tests/result/swift3 -t ${{ secrets.TOKEN }}
fosslight_dependency -p tests/test_carthage -o tests/result/carthage -t ${{ secrets.TOKEN }}
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1