name: GrumPHP
on: push

jobs:
  grumphp:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php: ['7.2', '7.3', '7.4']
    steps:
      - uses: actions/checkout@v2
      - name: Install PHP
        uses: docker://php:${{ matrix.php}}-cli
      - name:
        run: |
          php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
          php -r "if (hash_file('sha384', 'composer-setup.php') === 'e5325b19b381bfd88ce90a5ddb7823406b2a38cff6bb704b0acc289a09c8128d4a8ce2bbafcd1fcbdc38666422fe2806') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
          php composer-setup.php
          php -r "unlink('composer-setup.php');"
      - name: GrumPHP
        run: |
          vendor/bin/grumphp run

name: GrumPHP
on: push

jobs:
  grumphp:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        image:
        - docker://php:7.1-cli
        - docker://php:7.2-cli
        - docker://php:7.3-cli
        - docker://php:7.4-cli
        - docker://php:8.0-cli
    steps:
      - uses: actions/checkout@v2
      - name: Install PHP
        uses: ${{ matrix.image }}
      - name:
        run: |
          php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
          php -r "if (hash_file('sha384', 'composer-setup.php') === 'e5325b19b381bfd88ce90a5ddb7823406b2a38cff6bb704b0acc289a09c8128d4a8ce2bbafcd1fcbdc38666422fe2806') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
          php composer-setup.php
          php -r "unlink('composer-setup.php');"
      - name: GrumPHP
        run: |
          vendor/bin/grumphp run

Use full image for Matrix
Use full image for Matrix
