Skip to content
name: tests-on-windows
on:
push:
pull_request:
jobs:
tests-on-laravel10:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "windows-latest"
php:
- 8.1
- 8.2
- 8.3
dependencies:
- "highest"
- "lowest"
laravel:
- "10.x"
experimental:
- false
name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, bcmath, fileinfo
coverage: none
- name: Install Laravel Framework ${{ matrix.laravel }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --no-cache"
dependency-versions: "${{ matrix.dependencies }}"
- name: Execute tests
run: vendor/bin/phpunit
env:
TESTBENCH_CONVERT_DEPRECATIONS_TO_EXCEPTIONS: false
tests-on-laravel9:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "windows-latest"
php:
- '8.0'
- 8.1
- 8.2
dependencies:
- "highest"
- "lowest"
laravel:
- "9.x"
experimental:
- false
name: Laravel ${{ matrix.laravel }} on PHP${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, bcmath, fileinfo
coverage: none
- name: Install Laravel Framework ${{ matrix.laravel }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --no-cache"
dependency-versions: "${{ matrix.dependencies }}"
- name: Execute tests
run: vendor/bin/phpunit
env:
TESTBENCH_CONVERT_DEPRECATIONS_TO_EXCEPTIONS: false