name: Test

on:
    push:
        branches:
            - master
            - release/*
    pull_request:
        branches:
            - master
            - release/*

jobs:
    run:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                php: ['7.4']
        name: PHP ${{ matrix.php }}
        steps:
            -   name: Checkout
                uses: actions/checkout@v2

            # https://github.com/shivammathur/setup-php
            -   name: Setup
                uses: shivammathur/setup-php@v2
                with:
                    php-version: ${{ matrix.php }}
                    coverage: xdebug

            -   name: Validate
                run: composer validate

            -   name: Install
                run: composer install --prefer-dist --no-progress

            -   name: Test
                run: composer run-script test

name: Test

on:
    push:
        branches:
            - master
            - release/*
    pull_request:
        branches:
            - master
            - release/*

jobs:
    run:
        runs-on: ubuntu-latest
        strategy:
            matrix:
                php: ['7.4', '8.0']
        name: PHP ${{ matrix.php }}
        steps:
            -   name: Checkout
                uses: actions/checkout@v2

            # https://github.com/shivammathur/setup-php
            -   name: Setup
                uses: shivammathur/setup-php@v2
                with:
                    php-version: ${{ matrix.php }}
                    coverage: xdebug

            -   name: Validate
                run: composer validate

            -   name: Install
                run: composer install --prefer-dist --no-progress

            -   name: Test
                run: composer run-script test

Enable PHP 8.0 in GitHub actions
Enable PHP 8.0 in GitHub actions
