Skip to content

Commit

Permalink
Add Windows tests (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite authored Mar 23, 2022
1 parent e2e2e78 commit 612bb55
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,28 @@ jobs:
matrix:
php: [7.4, 8.0, 8.1]
laravel: [8.*, 9.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-20.04]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 9.*
testbench: 7.*
testbench-constraint: ^7.0
- laravel: 8.*
testbench: 6.*
laravel-constraint: ^8.18.1
testbench-constraint: ^6.22.0
- php: 7.4
dependency-version: prefer-lowest
additional-deps: '"mockery/mockery:>=1.2.3"'
- php: 8.0
dependency-version: prefer-lowest
additional-deps: '"mockery/mockery:>=1.3.3"'
framework: ^8.24.0
- laravel: 9.*
framework: ^9.0
- os: windows-latest
php: 7.4
laravel: 8.*
framework: ^8.65.0
stability: prefer-stable
- os: windows-latest
php: 8.1
laravel: 9.*
framework: ^9.0
stability: prefer-stable
exclude:
- laravel: 9.*
php: 7.4

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -44,13 +45,13 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel-constraint || matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench-constraint || matrix.testbench }}" ${{ matrix.additional-deps }} --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
composer require "laravel/framework:${{ matrix.framework }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit

0 comments on commit 612bb55

Please sign in to comment.