Merge pull request #14232 from curiouscoder-cmd/fix-node-version-docs #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Licenses | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - 'release-v**' | |
| pull_request: | |
| branches: | |
| - develop | |
| - 'release-v**' | |
| jobs: | |
| pre_job: | |
| name: Path match check | |
| runs-on: ubuntu-latest | |
| # Map a step output to a job output | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@master | |
| with: | |
| github_token: ${{ github.token }} | |
| paths: '["requirements/*.txt", "package.json", "**/package.json", "pnpm-lock.yaml", "test/conditional/test_licenses.sh", ".github/workflows/check_licenses.yml"]' | |
| licenses: | |
| name: Licenses check | |
| needs: pre_job | |
| if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: 'package.json' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| cache: true | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| # Use a Python virtual environment to ensure | |
| # our license check is only for packages | |
| # explicitly installed for Kolibri | |
| python -m venv ./virtualenv_dir | |
| source ./virtualenv_dir/bin/activate | |
| python -m pip install --upgrade pip | |
| # Actually install all our requirements before doing a license check | |
| pip install -r requirements.txt | |
| pnpm install --frozen-lockfile | |
| pnpm rebuild node-sass | |
| - name: Check Licenses | |
| run: ./test/conditional/test_licenses.sh |