Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI for supporrted Laravel versions #84

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@ on:
push:
branches:
- master
- v2.0
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
php-tests:
runs-on: ubuntu-latest
container:

strategy:
matrix:
php: [8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6]

name: PHP${{ matrix.php }} - ubuntu-latest
environment:
- php_version: 8.1
laravel_version: 10
- php_version: 8.2
laravel_version: 10
- php_version: 8.2
laravel_version: 11
- php_version: 8.3
laravel_version: 11

name: PHP${{ matrix.environment.php_version }} & Laravel ${{ matrix.environment.laravel_version }} - ubuntu-latest

steps:
- name: Checkout code
Expand All @@ -25,14 +35,16 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.environment.php_version }}
coverage: none

- name: Install dependencies
run: |
rm -f composer.lock
sudo composer self-update
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
composer install
composer require laravel/framework:^${{ matrix.environment.laravel_version }}.0

- name: Execute tests
run: vendor/bin/phpunit

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vendor
composer.lock
.phpunit.result.cache
.phpunit.cache
.vscode
.idea
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ If one of the checks provided cannot be resolved from the service container, we'

If you'd like to tweak the config file (helpful for configuring the `EnvHealthCheck`, for example), you can publish it with:

```php
```bash
php artisan vendor:publish --provider="UKFast\HealthCheck\HealthCheckServiceProvider" --tag="config"
```

Expand Down
Loading