Skip to content

Commit

Permalink
update ci to run madge on all (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinn authored Oct 14, 2023
1 parent 914d11f commit c031ea6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/garbo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- run: yarn workspace garbo-lib build
- run: yarn run lint

circular-dependencies-script:
circular-dependencies-all:
runs-on: ubuntu-latest

steps:
Expand All @@ -55,11 +55,11 @@ jobs:
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn workspace garbo-lib build
- run: yarn workspace garbo run madge
- run: yarn madge

deploy:
runs-on: ubuntu-latest
needs: [test-script, lint-all, circular-dependencies-script]
needs: [test-script, lint-all, circular-dependencies-all]
if: github.ref == 'refs/heads/main'

steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"format": "yarn run prettier --write .github && yarn workspaces foreach -pv run format",
"lint": " yarn workspaces foreach -pv run lint",
"pre-commit": "yarn workspaces foreach -v run pre-commit",
"madge": "yarn workspaces foreach -v run madge",
"prepare": "husky install"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config-garbo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"format": "prettier --write .",
"lint": "prettier --check .",
"madge": "madge --circular . ./index.js",
"build": "echo \"Nothing to do\"",
"pre-commit": "lint-staged"
},
Expand All @@ -29,6 +30,7 @@
"devDependencies": {
"eslint": "^8.50.0",
"lint-staged": "^14.0.1",
"madge": "^6.1.0",
"prettier": "^3.0.3",
"typescript": ">=4.2.0"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/garbo-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "tsc",
"format": "eslint src --fix && prettier --write .",
"lint": "eslint src && prettier --check .",
"madge": "madge --circular . ./src/index.ts",
"pre-commit": "lint-staged",
"prepublishOnly": "yarn run build"
},
Expand All @@ -28,6 +29,7 @@
"kolmafia": "^5.27628.0",
"libram": "^0.8.13",
"lint-staged": "^14.0.1",
"madge": "^6.1.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/garbo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"check": "tsc",
"lint": "eslint src && prettier --check .",
"format": "eslint src --fix && prettier --write .",
"madge": "madge --circular ./src/index.ts",
"madge": "madge --circular . ./src/index.ts",
"pre-commit": "lint-staged"
},
"lint-staged": {
Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3800,6 +3800,7 @@ __metadata:
eslint-config-prettier: ^9.0.0
eslint-plugin-libram: ^0.3.3
lint-staged: ^14.0.1
madge: ^6.1.0
prettier: ^3.0.3
typescript: ">=4.2.0"
peerDependencies:
Expand Down Expand Up @@ -4257,6 +4258,7 @@ __metadata:
kolmafia: ^5.27628.0
libram: ^0.8.13
lint-staged: ^14.0.1
madge: ^6.1.0
prettier: ^3.0.3
typescript: ^5.2.2
peerDependencies:
Expand Down

0 comments on commit c031ea6

Please sign in to comment.