diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ab18651..cd6390303 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,11 @@ jobs: php_version: '7.2' version: 1 + - run: mkdir -p .cache + + - name: Run Code Sniffer + run: composer run sniff-check + # Initialize Node.js - uses: actions/setup-node@v3 with: @@ -44,12 +49,6 @@ jobs: cache: npm cache-dependency-path: package-lock.json - # Make sure .cache folder exists - - name: 'Create folder .cache' - run: | - mkdir -p .cache && cd .cache && touch .gitkeep - - # Start actions - run: npm ci - - run: composer run sniff-check - - run: npm run format-check + - name: Run Format check + run: npm run format-check diff --git a/composer.json b/composer.json index 602d5d59f..b25240686 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility" ], "sniff-check": [ - "vendor/bin/phpcs -p . --standard=./phpcs.xml.dist" + "vendor/bin/phpcs --standard=./phpcs.xml.dist" ] } } \ No newline at end of file