Merge pull request #12 from Boyeep/chore/add-community-files #12
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: License Report | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "36 3 * * 2" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| license-report: | |
| name: License Report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| cache-dependency-path: | | |
| package-lock.json | |
| frontend/package-lock.json | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: backend/pyproject.toml | |
| - name: Install root tooling | |
| run: npm ci | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| working-directory: frontend | |
| - name: Install backend dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ./backend[dev] | |
| - name: Generate license reports | |
| run: npm run report:licenses | |
| - name: Upload license reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: license-reports | |
| path: reports/licenses/ | |
| if-no-files-found: error |