name: Run Tests

on:
  push:
    branches: [ krc/add-github-actions ]
  pull_request:

jobs:
  tests:
    strategy:
      matrix:
        os: [Ubuntu, Windows, macOS]
        php: [7.2, 7.3, 7.4, 8.0]

        include:
        - os: Ubuntu
          os-version: ubuntu-latest

        - os: Windows
          os-version: windows-latest

        - os: macOS
          os-version: macos-latest

    name: ${{ matrix.os }} - PHP ${{ matrix.php }}

    runs-on: ${{ matrix.os-version }}

    steps:
    - name: Checkout code
      uses: actions/checkout@v1

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
          php-version: ${{ matrix.php }}
          extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
          coverage: none
    
    - name: Install dependencies
      run: composer update --prefer-stable --prefer-dist --no-interaction --no-suggest --ignore-platform-reqs

    - name: Run PHP tests
      run: vendor/bin/phpunit
name: Run Tests

on:
  push:
    branches: [ krc/add-github-actions ]
  pull_request:

jobs:
  tests:
    strategy:
      matrix:
        os: [Ubuntu, macOS]
        php: [7.2, 7.3, 7.4, 8.0]

        include:
        - os: Ubuntu
          os-version: ubuntu-latest

        - os: macOS
          os-version: macos-latest

    name: ${{ matrix.os }} - PHP ${{ matrix.php }}

    runs-on: ${{ matrix.os-version }}

    steps:
    - name: Checkout code
      uses: actions/checkout@v1

    - name: Setup PHP
      uses: shivammathur/setup-php@v2
      with:
          php-version: ${{ matrix.php }}
          extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
          coverage: none
    
    - name: Install dependencies
      run: composer install

    - name: Run PHP tests
      run: vendor/bin/phpunit
Remove windows from test script since it does not work.
Remove windows from test script since it does not work.
