From cfe55b440f51091b21c5e0a035b3c3fde710fa22 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 13 Aug 2026 10:00:29 +0000 Subject: [PATCH] Fix discover test isolation and add CI workflow Disable gh/docker scanners in env-file discover tests so they do not pick up real credentials from the developer machine. Add GitHub Actions CI for typecheck, tests, and build. Co-authored-by: asimawdah.developer --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ src/lib/discover.test.ts | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9d35c0c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + +concurrency: + group: cli-ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + cache: npm + - name: Install dependencies + run: npm ci + - name: Typecheck + run: npm run typecheck + - name: Test + run: npm test + - name: Build + run: npm run build diff --git a/src/lib/discover.test.ts b/src/lib/discover.test.ts index 2144c01..485d7f7 100644 --- a/src/lib/discover.test.ts +++ b/src/lib/discover.test.ts @@ -31,6 +31,8 @@ describe("discover", () => { ssh: false, envVars: false, aws: false, + gh: false, + docker: false, envFiles: true, }); @@ -95,6 +97,8 @@ describe("discover", () => { ssh: false, envVars: false, aws: false, + gh: false, + docker: false, envFiles: true, }); expect(found).toEqual([]); @@ -116,6 +120,8 @@ describe("discover", () => { ssh: false, envVars: false, aws: false, + gh: false, + docker: false, envFiles: true, });