Getting error with workflow file for Drupal module

Hi there,

I am trying to configure the PHPCS and Drupal Coder module for code validation but it seems there is some issue with my “yml” please check and suggest the next steps:

YML file:

Workflow error:

name: D8 Code Review

    branches: [master]
    branches: [master]


    runs-on: ubuntu-latest
      image: juampynr/drupal8ci:latest

    - uses: actions/checkout@v2
      fetch-depth: 1

    - name: Composer version
      run: composer -V

    - name: Install Coder
      run: composer global require drupal/coder:^8.3.1

    - name: Install Codesniffer
      run: composer global require dealerdirect/phpcodesniffer-composer-installer

    - name: Validate composer.json and composer.lock
      run: composer validate

    - name: Install dependencies
      run: composer install --prefer-dist --no-progress --no-suggest

    - name: List all of the available packages
      run: composer global show -P

    - name: Composer home directory
      run: composer config home

    - name: Path of phpcs
      run: which phpcs

    - name: Verify Registered Standards
      run: phpcs -i

    - name: Manually Set Installed Paths
      run: phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer

    # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
    # Docs:

    # - name: Run test suite
    # run: composer run-script test

Please find the below D8 composer plugin details:

Thanks in Advance :slight_smile:


Hi All, The above issue is fixed. The issue with indentation.

Thank you.