learning_ai_notes/.github/workflows/dependency-health.yml

59 lines
1.6 KiB
YAML

name: Dependency Health — NoteLett
on:
workflow_dispatch:
schedule:
- cron: "21 9 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dependency-health:
name: Dependency health report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout common-plat (for @bytelyst/* packages)
uses: actions/checkout@v4
with:
repository: saravanakumardb1/learning_ai_common_plat
path: learning_ai_common_plat
token: ${{ secrets.GH_PAT }}
- name: Link common-platform workspace path
run: |
mkdir -p ../learning_ai
ln -sfn "$GITHUB_WORKSPACE/learning_ai_common_plat" ../learning_ai/learning_ai_common_plat
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Enable pnpm
run: corepack enable
- name: Build @bytelyst/* packages
working-directory: learning_ai_common_plat
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Run dependency health script
run: bash scripts/dependency-health.sh | tee dependency-health-report.txt
- name: Upload dependency health report
if: always()
uses: actions/upload-artifact@v4
with:
name: dependency-health-report
path: dependency-health-report.txt
if-no-files-found: error