From a4395b484ab84092cef54d71e3d83860dfd500a2 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 26 Feb 2022 09:02:19 +0900 Subject: [PATCH 1/3] chore: update .github/workflows/unused.yml --- .github/workflows/unused.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unused.yml b/.github/workflows/unused.yml index 0421b27..40fe242 100644 --- a/.github/workflows/unused.yml +++ b/.github/workflows/unused.yml @@ -67,4 +67,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 From ff121816bf4ccb7508faa5a56bd05294d523c856 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 26 Feb 2022 09:02:41 +0900 Subject: [PATCH 2/3] chore: composer require --dev icanhazstring/composer-unused --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" From 2367a145001f8d8a60abe85f26a8f1cd54a2daee Mon Sep 17 00:00:00 2001 From: kenjis Date: Sat, 26 Feb 2022 09:12:53 +0900 Subject: [PATCH 3/3] chore: remove unneeded steps --- .github/workflows/unused.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/unused.yml b/.github/workflows/unused.yml index 40fe242..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 }}"