Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: add composer unused #4

Merged
merged 3 commits into from
Feb 26, 2022
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
12 changes: 1 addition & 11 deletions .github/workflows/unused.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,6 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Create PHPStan cache directory
run: mkdir -p build/phpstan

- name: Cache PHPStan results
uses: actions/cache@v2
with:
path: build/phpstan
key: ${{ runner.os }}-phpstan-${{ github.sha }}
restore-keys: ${{ runner.os }}-phpstan-

- name: Install dependencies
run: |
composer -q config -g github-oauth.github.com "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -67,4 +57,4 @@ jobs:
fi

- name: Detect unused packages
run: composer-unused -vvv --ansi --no-interaction --no-progress --excludePackage=php
run: composer-unused -vvv --output-format=github --ansi --no-interaction --no-progress
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"phpmetrics/phpmetrics": "^2.7",
"vimeo/psalm": "^4.18",
"psalm/plugin-phpunit": "^0.13",
"rector/rector": "0.12.13"
"rector/rector": "0.12.13",
"icanhazstring/composer-unused": "^0.8.1"
},
"suggest": {
"ext-fileinfo": "Improves mime type detection for files"
Expand Down