name: CI
on:
  push:
    branches:
    - '*'
  pull_request:
  schedule:
  - cron: 0 14 * * 0
jobs:
  ci:
    name: PHP v${{ matrix.php }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php: ['7.3', '7.4', '8.0']
    steps:
    - name: Set up PHP
      uses: shivammathur/setup-php@master
      with:
        php-version: ${{ matrix.php }}
        coverage: xdebug
    - name: Check PHP version
      run: php -v
    - name: Checkout
      uses: actions/checkout@v1
    - name: Make
      run: make ci
    - name: Upload Coverage Reports
      if: success()
      run: |
        [[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"

name: CI
on:
  push:
    branches:
      - "*"
  pull_request:
  schedule:
    - cron: 0 14 * * 0
jobs:
  ci:
    name: PHP v${{ matrix.php }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        php: ["7.4", "8.0", "8.1"]
    steps:
      - name: Set up PHP
        uses: shivammathur/setup-php@master
        with:
          php-version: ${{ matrix.php }}
          coverage: xdebug
      - name: Check PHP version
        run: php -v
      - name: Checkout
        uses: actions/checkout@v1
      - name: Make
        run: make ci
      - name: Upload coverage report
        uses: codecov/codecov-action@v2

Update build matrix to supported PHP versions.
Update build matrix to supported PHP versions.
