Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 13, 2024
1 parent 482c014 commit afdf54e
Showing 1 changed file with 51 additions and 59 deletions.
110 changes: 51 additions & 59 deletions .github/workflows/parallel-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,62 +57,54 @@ jobs:
env:
RAY_ENABLED: false

jobs:
tests-on-php-81:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.1
collision:
- "^7.4"
paratest:
- ">=7.1.0 <7.4.0"
dependencies:
- "highest"
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo, :php-psr
coverage: none

- name: Install Paratest
run: |
composer require "phpunit/phpunit:^10.5" --dev --no-interaction --no-update
composer require "nunomaduro/collision:${{ matrix.collision }}" "brianium/paratest:${{ matrix.paratest }}" --dev --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --prefer-stable --no-cache"

- name: Installed dependencies
run: |
composer show -D
- name: Execute tests (with deprecations on PHPUnit 10)
run: ./testbench package:test --parallel --exclude-group commander,without-parallel,database,session --no-coverage
env:
RAY_ENABLED: false
if: matrix.dependencies == 'highest'

- name: Execute tests (without deprecations on PHPUnit 10)
run: ./testbench package:test --parallel --exclude-group commander,without-parallel,database,session,deprecations --no-coverage
env:
RAY_ENABLED: false
TESTBENCH_CONVERT_DEPRECATIONS_TO_EXCEPTIONS: false
if: matrix.dependencies != 'highest'
jobs:
tests-on-php-81:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.1
collision:
- "^7.4"
paratest:
- ">=7.1.0 <7.4.0"
dependencies:
- "highest"
experimental:
- false

name: PHP${{ matrix.php }} on ${{ matrix.os }} (${{ matrix.dependencies }})

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, intl, fileinfo, :php-psr
coverage: none

- name: Install Paratest
run: |
composer require "phpunit/phpunit:^10.5" --dev --no-interaction --no-update
composer require "nunomaduro/collision:${{ matrix.collision }}" "brianium/paratest:${{ matrix.paratest }}" --dev --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --prefer-stable --no-cache"

- name: Installed dependencies
run: |
composer show -D
- name: Execute tests (with deprecations on PHPUnit 10)
run: ./testbench package:test --parallel --exclude-group commander,without-parallel,database,session --no-coverage
env:
RAY_ENABLED: false

0 comments on commit afdf54e

Please sign in to comment.