name: Tests

on: [ push, pull_request ]

jobs:
  tests:
    name: "Tests"

    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        php-version:
          - "7.3"
          - "7.4"
          - "8.0"
          - "8.1"
        composer-flags:
          - ""
          - " --prefer-lowest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"

      - name: "Install PHP"
        uses: "shivammathur/setup-php@v2"
        with:
          coverage: "none"
          php-version: "${{ matrix.php-version }}"

      - name: "Install dependencies"
        run: "composer update --no-interaction --no-progress ${{ matrix.composer-flags }}"

      - name: "Tests"
        run: |
          vendor/bin/phing

name: Tests

on: [ push, pull_request ]

jobs:
  tests:
    name: "Tests"

    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        include:
          - php-version: "7.3"
            composer-flags: ""
          - php-version: "7.3"
            composer-flags: " --prefer-lowest"
          - php-version: "7.4"
            composer-flags: ""
          - php-version: "7.4"
            composer-flags: " --prefer-lowest"
          - php-version: "8.0"
            composer-flags: ""
          - php-version: "8.0"
            composer-flags: " --prefer-lowest"
          - php-version: "8.1"
            composer-flags: ""
          - php-version: "8.1"
            composer-flags: " --prefer-lowest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"

      - name: "Install PHP"
        uses: "shivammathur/setup-php@v2"
        with:
          coverage: "none"
          php-version: "${{ matrix.php-version }}"

      - name: "Install dependencies"
        run: "composer update --no-interaction --no-progress ${{ matrix.composer-flags }}"

      - name: "Tests"
        run: |
          vendor/bin/phing

Make the test matrix entries explicit
[TASK] Make the test matrix entries explicit

This allows having only a subset of tests when new PHP versions and
TYPO3 versions are added (where not all combinations are possible).
