Make tests pass on Windows (#1205)

* Make all tests pass cross platform

* Add job to run tests on Windows

* Merge test jobs with conditional Windows step for line endings

* Prefix job name with OS

* Update git lf step if statement

* Exclude all tests for Windows except PHP 8.0

* composer fix-style

Co-authored-by: Barry vd. Heuvel <[email protected]>
Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
Wim Reckman
2021-08-04 11:22:48 +02:00
committed by GitHub
co-authored by Barry vd. Heuvel laravel-ide-helper
parent b6871d09a4
commit 37f08320ea
5 changed files with 35 additions and 19 deletions
+17 -5
View File
@@ -12,19 +12,31 @@ on:
jobs:
php-tests:
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
timeout-minutes: 15
env:
COMPOSER_NO_INTERACTION: 1
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
php: [8.0, 7.4, 7.3]
laravel: [8.*]
name: P${{ matrix.php }} - L${{ matrix.laravel }}
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.0
dependency-version: prefer-lowest
- os: windows-2019
php: 7.4
- os: windows-2019
php: 7.3
steps:
- name: Set git to use LF
if: ${{ matrix.os == 'windows-2019' }}
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2
@@ -33,7 +45,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: pdo_sqlite
extensions: pdo_sqlite, fileinfo
- name: Install dependencies
run: |