From 25164aebb84d7eaf21095dab267a4c5d504d72a9 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 14 Mar 2022 00:52:07 +0100 Subject: [PATCH] apply github style guide to indentation of steps --- .github/workflows/linting.yml | 212 +++++++++++++++++----------------- 1 file changed, 106 insertions(+), 106 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 74651d76..5978eb0d 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -24,41 +24,41 @@ jobs: steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ env.php-version }} - tools: composer, cs2pr - coverage: none + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.php-version }} + tools: composer, cs2pr + coverage: none - - name: Get Composer cache directory - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | + - name: Get Composer cache directory + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | ${{ runner.os }}-composer- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress - - name: Auto fix coding standards - run: composer phpcs-fix - continue-on-error: true + - name: Auto fix coding standards + run: composer phpcs-fix + continue-on-error: true - - name: Commit coding standards fixes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Fix coding standards with phpcbf - branch: ${{ github.head_ref }} + - name: Commit coding standards fixes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Fix coding standards with phpcbf + branch: ${{ github.head_ref }} - - name: Check coding standards - run: composer phpcs-ga | cs2pr + - name: Check coding standards + run: composer phpcs-ga | cs2pr php-lint: @@ -67,31 +67,31 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ env.php-version }} - tools: composer, cs2pr - coverage: none + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.php-version }} + tools: composer, cs2pr + coverage: none - - name: Get Composer cache directory - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Get Composer cache directory + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress - - name: Check syntax - run: composer php-lint + - name: Check syntax + run: composer php-lint phpstan: @@ -100,41 +100,41 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ env.php-version }} - tools: composer, cs2pr - coverage: none + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.php-version }} + tools: composer, cs2pr + coverage: none - - name: Get Composer cache directory - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Get Composer cache directory + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress - - name: Static Analysis - id: phpstan - run: composer phpstan -- --error-format=github + - name: Static Analysis + id: phpstan + run: composer phpstan -- --error-format=github - - name: Update basefile - run: composer phpstan-baseline + - name: Update basefile + run: composer phpstan-baseline - - name: Commit updated basefile - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update PHPStan basefile - branch: ${{ github.head_ref }} + - name: Commit updated basefile + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Update PHPStan basefile + branch: ${{ github.head_ref }} phpmd: @@ -143,37 +143,37 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ env.php-version }} - tools: composer, cs2pr - coverage: none + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.php-version }} + tools: composer, cs2pr + coverage: none - - name: Get Composer cache directory - id: composer-cache - uses: actions/cache@v2 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- + - name: Get Composer cache directory + id: composer-cache + uses: actions/cache@v2 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- - - name: Install dependencies - if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress - - name: Detect mess - run: composer phpmd-ga + - name: Detect mess + run: composer phpmd-ga - - name: Update basefile - run: composer phpmd-baseline + - name: Update basefile + run: composer phpmd-baseline - - name: Commit updated basefile - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Update PHPMD basefile - branch: ${{ github.head_ref }} + - name: Commit updated basefile + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Update PHPMD basefile + branch: ${{ github.head_ref }}