From c387ec94ee0331ae532131e07262b22fecef7412 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:06:21 +0000 Subject: [PATCH 1/2] Initial plan From f1f1dc61e5f9193635d8dad7a5cf962fd06b5ba4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:10:02 +0000 Subject: [PATCH 2/2] fix: restore ci.yml with audit job and add cache-dependency-path The `audit` job was failing because `setup-node@v4` with `cache: npm` could not find a lock file at the repo root. The lock file lives at `tools/loop-audit/package-lock.json`, so add `cache-dependency-path` pointing to it in both the `validate` and `audit` jobs. Also restores the correct `name:`, `on:` triggers, and the `validate`/ `audit` job structure that was accidentally overwritten by a previous commit that left ci.yml with no triggers and a stale `build` job. --- .github/workflows/ci.yml | 43 +++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9750947..bfb9151 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,23 +1,38 @@ +name: CI +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + workflow_dispatch: jobs: - build: + validate: runs-on: ubuntu-latest - defaults: - run: - working-directory: . # <-- repo root, not loop-engineering/loop-engineering steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 20 cache: npm - cache-dependency-path: | - frontend/package-lock.json - doc/package-lock.json - - name: Install frontend deps - if: hashFiles('frontend/package-lock.json') != '' - working-directory: frontend + cache-dependency-path: tools/loop-audit/package-lock.json + - working-directory: tools/loop-audit run: npm ci - - name: Install docs deps - if: hashFiles('doc/package-lock.json') != '' - working-directory: doc + - working-directory: tools/loop-audit + run: node dist/cli.js .. --level L2 + audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: tools/loop-audit/package-lock.json + - working-directory: tools/loop-audit run: npm ci + - working-directory: tools/loop-audit + run: npm run build