Skip to content

Commit

Permalink
Updated CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Mar 11, 2024
1 parent 2a46789 commit f02a18f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
43 changes: 32 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,40 @@ name: CI
on: [push]

jobs:
build-test:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
exclude:
- laravel: 11.*
php: 8.1

steps:
- uses: actions/checkout@v3
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

- uses: php-actions/composer@v6
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: PHPUnit Tests
uses: php-actions/phpunit@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_extensions: xdebug
configuration: phpunit.xml
args: --coverage-text
env:
XDEBUG_MODE: coverage
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@
"stevebaumann/location": "GeoIP country detection for log headers information",
"symfony/thanks": "Star packages you use running 'composer thanks' command"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit f02a18f

Please sign in to comment.