name: CI test suite

on:
  pull_request:
    paths:
      - 'composer.*'
      - phpcs.xml
      - phpstan.neon
      - '**.php'
  push:
    paths:
      - 'composer.*'
      - phpcs.xml
      - phpstan.neon
      - '**.php'

jobs:
  build:
    strategy:
      matrix:
        php-versions: ['8.0', '7.4', '7.3', '7.2']

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Set up PHP versions
      uses: shivammathur/setup-php@v1
      with:
        php-version: ${{ matrix.php-versions }}
        extension-csv: mbstring

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

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

    - name: Run CI test suite
      run: composer run-script ci

name: CI test suite

on:
  pull_request:
    paths:
      - 'composer.*'
      - phpcs.xml
      - phpstan.neon
      - '**.php'
  push:
    paths:
      - 'composer.*'
      - phpcs.xml
      - phpstan.neon
      - '**.php'

jobs:
  build:
    strategy:
      matrix:
        php-versions: ['7.4', '7.3', '7.2']

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Set up PHP versions
      uses: shivammathur/setup-php@v1
      with:
        php-version: ${{ matrix.php-versions }}
        extension-csv: mbstring

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

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

    - name: Run CI test suite
      run: composer run-script ci

Revert addition of PHP 8.0 to CI matrix
Revert addition of PHP 8.0 to CI matrix

Hold on PHP 8 support for now.
