From 6ee25016ccf865adffb8cdc3cc1e33216a2d8a7c Mon Sep 17 00:00:00 2001 From: Chris Combe <24692334+ccombe@users.noreply.github.com> Date: Mon, 9 Nov 2026 16:18:35 +1100 Subject: [PATCH] Fail CI when the library module graph gains a cycle This branch already reports no cycles. Run madge after the build so a new one fails the pull request. Co-authored-by: Cursor --- .github/workflows/build-and-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b243560..d7af9c4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,4 +16,5 @@ jobs: registry-url: "https://registry.npmjs.org" - run: yarn - run: yarn build + - run: npx --yes madge --circular modules/react-arborist/dist/module/index.js - run: yarn test