Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
axlon committed Mar 11, 2024
1 parent 891d63e commit 00ff909
Showing 1 changed file with 7 additions and 30 deletions.
37 changes: 7 additions & 30 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ on:
jobs:
laravel:
runs-on: ubuntu-latest


strategy:
fail-fast: true
matrix:
laravel: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*', '11.*']
php: [7.2, '8.2']
laravel: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
php: [ 7.2 ]
include:
- laravel: 6.*
php: 7.3
Expand Down Expand Up @@ -46,46 +44,33 @@ jobs:
- laravel: 10.*
php: 8.2
- laravel: 11.*
php: '8.2'
exclude:
- laravel: 11.*
php: 7.2


name: Tests for Laravel ${{ matrix.laravel }} on PHP ${{ matrix.php }}


php: 8.2
name: PHPUnit on Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2


- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug


- name: Install dependencies
run: |
composer require laravel/laravel:"${{ matrix.laravel }}" --dev --no-update
composer install --prefer-dist --no-interaction --no-progress
- name: Run tests
run: composer test-laravel

lumen:
runs-on: ubuntu-latest


strategy:
fail-fast: true
matrix:
lumen: ['5.5.*', '5.6.*', '5.7.*', '5.8.*', '6.*', '7.*']
php: [7.2, '8.2']
lumen: [ 5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.* ]
php: [ 7.2 ]
include:
- lumen: 6.*
php: 7.3
Expand All @@ -109,29 +94,21 @@ jobs:
php: 8.1
- lumen: 9.*
php: 8.2


name: Tests for Lumen ${{ matrix.lumen }} on PHP ${{ matrix.php }}


name: PHPUnit on Lumen ${{ matrix.lumen }} / PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2


- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: xdebug


- name: Install dependencies
run: |
composer require laravel/lumen:"${{ matrix.lumen }}" --dev --no-update
composer install --prefer-dist --no-interaction --no-progress
- name: Run tests
run: composer test-lumen

0 comments on commit 00ff909

Please sign in to comment.