diff --git a/.github/workflows/unused.yml b/.github/workflows/unused.yml index 0421b27..99d7124 100644 --- a/.github/workflows/unused.yml +++ b/.github/workflows/unused.yml @@ -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 }}" @@ -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 diff --git a/composer.json b/composer.json index 50fbfd5..764b349 100644 --- a/composer.json +++ b/composer.json @@ -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"