name: CI

on: [push, pull_request]

jobs:
  phpspec:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php: [7.2, 7.3, 7.4, 8.0]
    steps:
    - uses: actions/checkout@v1
    - uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php }}
    - name: Validate Composer files
      run: composer validate --no-check-all --strict
    - name: Install Composer dependencies
      run: composer install --prefer-dist --no-progress
    - name: Run tests
      run: php vendor/bin/phpspec run


name: CI

on: [push, pull_request]

jobs:
  phpspec:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php: [7.2, 7.3, 7.4, 8.0, 8.1]
    steps:
    - uses: actions/checkout@v1
    - uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php }}
    - name: Validate Composer files
      run: composer validate --no-check-all --strict
    - name: Install Composer dependencies
      run: composer install --prefer-dist --no-progress
    - name: Run tests
      run: php vendor/bin/phpspec run


Test with PHP 8.1, too
CI: Test with PHP 8.1, too
