name: build

on: [push, pull_request]

env:
  COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

    steps:
    - uses: actions/checkout@v2

    - uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}
        coverage: pcov

    - name: Composer actions
      run: composer install
      run: composer test

    - name: Upload coverage
      # PHPUnit 8 doesn't support coverage on PHP 8
      if: startsWith(matrix.php-versions, '7')
      run: php vendor/bin/php-coveralls -v

name: build

on: [push, pull_request]

env:
  COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

    steps:
    - uses: actions/checkout@v2

    - uses: shivammathur/setup-php@v2
      with:
        php-version: ${{ matrix.php-versions }}
        coverage: pcov

    - name: Composer install
      run: composer install

    - name: Composer test
      run: composer test

    - name: Upload coverage
      # PHPUnit 8 doesn't support coverage on PHP 8
      if: startsWith(matrix.php-versions, '7')
      run: php vendor/bin/php-coveralls -v

Fix GitHub Action config error
Fix GitHub Action config error
