Skip to content

Support cargo package manager #413

Support cargo package manager

Support cargo package manager #413

Workflow file for this run

# 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 .
npm install -g license-checker
- name: Install Pod
working-directory: ./tests/test_cocoapods/cocoapods-tips/JWSCocoapodsTips
run: pod install --clean-install
- name: Set TOKEN Environment Variable
run: |
if [ -z "${{ secrets.TOKEN }}" ]; then
echo "TOKEN=dummy" >> $GITHUB_ENV
else
echo "TOKEN=${{ secrets.TOKEN }}" >> $GITHUB_ENV
fi
- 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 ${{ env.TOKEN }}
fosslight_dependency -p tests/test_swift2 -o tests/result/swift2 -t ${{ env.TOKEN }}
fosslight_dependency -p tests/test_swift2 -o tests/result/swift3 -t ${{ env.TOKEN }}
fosslight_dependency -p tests/test_carthage -o tests/result/carthage -t ${{ env.TOKEN }}
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1