name: Dependency Check

on:
  schedule:
    - cron: "43 5 * * 3"
  workflow_dispatch:

jobs:
  dependencies:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: "22"

      - name: Install dependencies
        run: npm install

      - name: Audit
        run: npm audit --omit=dev --audit-level=high

      - name: Outdated report
        run: npm outdated || true
