diff --git a/.forgejo/workflows/push.yml b/.forgejo/workflows/push.yml index 0f5e4de..0754eff 100644 --- a/.forgejo/workflows/push.yml +++ b/.forgejo/workflows/push.yml @@ -10,16 +10,15 @@ jobs: REPO: '${{ github.repository }}' TOKEN: '${{ secrets.GITHUB_TOKEN }}' GIT_SERVER: 'git.php.fail' + COMPOSER_CACHE_DIR: /opt/hostedtoolcache/.composer/cache/files run: | git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}/${REPO}.git . git fetch git checkout ${{ github.head_ref }} - - name: composer install - env: - COMPOSER_CACHE_DIR: /opt/hostedtoolcache/.composer/cache/files + - name: create composer cache dir run: | - mkdir -p ${{ env.COMPOSER_CACHE_DIR }} - composer install + mkdir -p /opt/hostedtoolcache/.composer/cache/files + - run: composer install - run: composer lint - name: GIT commit and push all changed files env: diff --git a/config/ecs.php b/config/ecs.php index a964b49..28b4812 100644 --- a/config/ecs.php +++ b/config/ecs.php @@ -1,6 +1,5 @@ withConfiguredRule( - ClassAttributesSeparationFixer::class, - [ - 'elements' => [ - 'const' => 'none', - 'method' => 'one', - 'property' => 'none', - 'trait_import' => 'none', - 'case' => 'none', - ], - ], - )->withConfiguredRule( DeclareStrictTypesSniff::class, [ 'declareOnFirstLine' => true, diff --git a/src/LubiSetList.php b/src/LubiSetList.php index 092d20f..87017c2 100644 --- a/src/LubiSetList.php +++ b/src/LubiSetList.php @@ -5,5 +5,6 @@ namespace Lubiana\CodeQuality; final class LubiSetList { public const string RECTOR = __DIR__ . '/../config/rector.php'; + public const string ECS = __DIR__ . '/../config/ecs.php'; }