Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,14 @@ jobs:
max_attempts: 5
command: composer update --prefer-dist --no-interaction --no-progress

- name: Execute style
run: composer run style -- --bail
- name: Execute architectural layers static analysis
run: composer run deptrac

- name: Execute static analysis
- name: Execute code static analysis
run: composer run static

- name: Execute style
run: composer run style -- --bail

- name: Execute tests
run: composer run test

deptrac:

runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Run Deptrac
uses: docker://smoench/deptrac-action:latest
with:
args: analyse --report-uncovered --fail-on-uncovered
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"require-dev": {
"laravel/pint": "^1.19",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^10.5"
"phpunit/phpunit": "^10.5",
"qossmic/deptrac": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
20 changes: 10 additions & 10 deletions deptrac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ deptrac:
layers:
- name: Toolkit
collectors:
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Contracts\\Toolkit\\*
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Toolkit\\*
- type: className
- type: classLike
value: Ramsey\\Uuid\\*
- name: Domain
collectors:
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Contracts\\Domain\\*
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Domain\\*
- name: Application
collectors:
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Contracts\\Application\\*
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Application\\*
- name: Infrastructure
collectors:
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Contracts\\Infrastructure\\*
- type: className
- type: classLike
value: CloudCreativity\\Modules\\Infrastructure\\*
- name: PSR Log
collectors:
- type: className
- type: classLike
value: Psr\\Log\\*
ruleset:
Toolkit:
Expand Down
Loading