From 72dcf69f46b1d8b055d3bc0e58d20be3c8d71432 Mon Sep 17 00:00:00 2001 From: Khoubza Younes Date: Mon, 26 Dec 2022 12:54:00 +0100 Subject: [PATCH] feat: test github actions on multiple windows and ubuntu --- .github/workflows/tests.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3ac69a52..9281b222 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,10 +5,11 @@ on: jobs: symfony-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: + os: [ubuntu-latest, windows-latest] symfony: [ 6.2.*, 6.1.*, 6.0.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.4.*, 4.3.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*, 2.8.*, 2.7.*, 2.6.*, 2.5.*, 2.4.*, 2.3.*, 2.2.*, 2.1.*, 2.0.* ] include: - { symfony: 6.2.*, php: 8.1, phpunit: 9.5.* } @@ -39,7 +40,7 @@ jobs: - { symfony: 2.1.*, php: 5.3, phpunit: 4.8.36 } - { symfony: 2.0.*, php: 5.3, phpunit: 4.8.36 } - name: symfony[${{ matrix.symfony }}] php[${{ matrix.php }}] + name: symfony[${{ matrix.symfony }}] php[${{ matrix.php }}] - ${{ matrix.os }} steps: - name: Checkout code @@ -62,10 +63,11 @@ jobs: run: vendor/bin/phpunit --configuration=phpunit-symfony.xml laravel-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: + os: [ubuntu-latest, windows-latest] laravel: [ 9.*, 8.*, 7.*, 6.*, 5.8.*, 5.7.*, 5.6.*, 5.5.*, 5.4.*, 5.3.*, 5.2.*, 5.1.*, 5.0.*, 4.2.*, 4.1.*, 4.0.* ] include: - { laravel: 9.*, testbench: 7.*, php: 8.2, phpunit: 9.5.* } @@ -85,7 +87,7 @@ jobs: - { laravel: 4.1.*, testbench: 2.1.*, php: 5.4, phpunit: 4.8.* } - { laravel: 4.0.*, testbench: 2.0.*, php: 5.4, phpunit: 4.8.* } - name: laravel[${{ matrix.laravel }}] php[${{ matrix.php }}] + name: laravel[${{ matrix.laravel }}] php[${{ matrix.php }}] - ${{ matrix.os }} steps: - name: Checkout code