Skip to content

Commit c56d326

Browse files
authored
Add circular dependency detection to CI (#7316)
* add circular dependency detection to CI * fixed Auth-RestWrite circular dependency * updated package lock * fixed Logger circular dependency * fix lint
1 parent 0becb0c commit c56d326

File tree

9 files changed

+1255
-117
lines changed

9 files changed

+1255
-117
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ jobs:
5252
- name: Install dependencies
5353
run: npm ci
5454
- run: npm run lint
55+
check-circular:
56+
name: Circular Dependencies
57+
timeout-minutes: 5
58+
runs-on: ubuntu-18.04
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
62+
uses: actions/setup-node@v1
63+
with:
64+
node-version: ${{ matrix.node-version }}
65+
- name: Cache Node.js modules
66+
uses: actions/cache@v2
67+
with:
68+
path: ~/.npm
69+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
70+
restore-keys: |
71+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
72+
- name: Install dependencies
73+
run: npm ci
74+
- run: npm run madge:circular
5575
check-mongo:
5676
strategy:
5777
matrix:

0 commit comments

Comments
 (0)