name: ci

on:
  push:
    branches:
      - master
      - php5.x-master
  pull_request:
  schedule:
    - cron: '0 17 * * *'

jobs:
  ci:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php:
          - '7.0'
          - '7.1'
          - '7.2'
          - '7.3'
          - '7.4'
          - '8.0'
          - '8.1'
        future-release: [false]
        include:
          - php: '8.2'
            future-release: true
      fail-fast: false
    name: PHP ${{ matrix.php }}
    continue-on-error: ${{ matrix.future-release }}

    steps:
      - name: Set up php
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php }}

      - name: Checkout
        uses: actions/checkout@v2

      - name: Test
        run: bash tests/ci.sh
        env:
          CI_PHP_VERSION: ${{ matrix.php }}
          CI_PHP_FUTURE_RELEASE: ${{ matrix.future-release }}

      - name: Static analysis
        run: "vendor/bin/psalm"
        if: ${{ !matrix.future-release && matrix.php >= 7.1 }}

name: ci

on:
  push:
    branches:
      - master
      - php5.x-master
  pull_request:
  schedule:
    - cron: '0 17 * * *'

jobs:
  ci:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        php-version:
          - '7.0'
          - '7.1'
          - '7.2'
          - '7.3'
          - '7.4'
          - '8.0'
          - '8.1'
        future-release: [false]
        include:
          - php-version: '8.2'
            future-release: true
      fail-fast: false
    name: PHP ${{ matrix.php-version }}
    continue-on-error: ${{ matrix.future-release }}

    steps:
      - name: Set up php
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ matrix.php-version }}

      - name: Checkout
        uses: actions/checkout@v2

      - name: Test
        run: bash tests/ci.sh
        env:
          CI_PHP_VERSION: ${{ matrix.php-version }}
          CI_PHP_FUTURE_RELEASE: ${{ matrix.future-release }}

      - name: Static analysis
        run: "vendor/bin/psalm"
        if: ${{ !matrix.future-release && matrix.php-version >= 7.1 }}

Update matrix strategy key name
Update matrix strategy key name
