Skip to content

Laravel 12.x Compatibility #25

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

Merged
merged 3 commits into from
Apr 17, 2025
Merged
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
20 changes: 12 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: "tests"
name: tests

on: [ push, pull_request ]
on:
- push
- pull_request

jobs:
test:
timeout-minutes: 3

runs-on: ubuntu-22.04

strategy:
Expand All @@ -21,10 +24,10 @@ jobs:
laravel: 11
- php: 8.3
laravel: 9
- php: 8.0
laravel: 12
- php: 8.1
laravel: 12
- laravel: 12
php: '8.0'
- laravel: 12
php: 8.1

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

Expand All @@ -43,6 +46,7 @@ jobs:

- name: Start Centrifugo
run: docker run -d -p 8000:8000 -e CENTRIFUGO_TOKEN_HMAC_SECRET_KEY="secret" -e CENTRIFUGO_API_KEY="api-key" -e CENTRIFUGO_PRESENCE=1 -e CENTRIFUGO_JOIN_LEAVE=true -e CENTRIFUGO_FORCE_PUSH_JOIN_LEAVE=true -e CENTRIFUGO_HISTORY_TTL=300s -e CENTRIFUGO_HISTORY_SIZE=100 -e CENTRIFUGO_FORCE_RECOVERY=true -e CENTRIFUGO_USER_SUBSCRIBE_TO_PERSONAL=true -e CENTRIFUGO_ALLOW_PUBLISH_FOR_SUBSCRIBER=true -e CENTRIFUGO_ALLOW_PRESENCE_FOR_SUBSCRIBER=true -e CENTRIFUGO_ALLOW_HISTORY_FOR_SUBSCRIBER=true centrifugo/centrifugo:v5 centrifugo

- name: Check container status
run: docker ps

Expand All @@ -56,8 +60,8 @@ jobs:

- name: Install dependencies
run: |
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress

- name: PHPUnit Tests
run: vendor/bin/phpunit
125 changes: 62 additions & 63 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,63 @@
{
"name" : "denis660/laravel-centrifugo",
"description" : "Centrifugo broadcaster for laravel",
"keywords" : [
"laravel-broadcaster",
"broadcaster",
"laravel",
"centrifugo",
"web socket",
"web-socket",
"websocket",
"socket",
"real time"
],
"license" : "MIT",
"authors" : [
{
"name" : "Denis Zakharenko",
"email" : "amx-serv@ya.ru",
"role" : "Creator"
}
],
"homepage" : "https://github.com/denis660/laravel-centrifugo",
"support" : {
"email" : "amx-serv@ya.ru",
"issues" : "https://github.com/denis660/laravel-centrifugo/issues",
"source" : "https://github.com/denis660/laravel-centrifugo"
},
"require" : {
"php" : "^8.0",
"ext-json": "*",
"laravel/framework" : "^9.0|^10.0|^11.0|^12.0",
"guzzlehttp/guzzle" : "~6.0|^7.0"
},
"require-dev" : {
"orchestra/testbench" : "^7.35|^8.14|^9.0",
"phpunit/phpunit" : "^9.3|^10.5"
},
"autoload" : {
"psr-4" : {
"denis660\\Centrifugo\\" : "src/"
}
},
"autoload-dev" : {
"psr-4" : {
"denis660\\Centrifugo\\Test\\" : "tests/"
}
},
"extra" : {
"laravel" : {
"providers" : [
"denis660\\Centrifugo\\CentrifugoServiceProvider"
]
}
},
"config" : {
"sort-packages" : true
},
"minimum-stability" : "dev",
"prefer-stable" : true,
"scripts" : {
"test" : "phpunit"
}
}
"name": "denis660/laravel-centrifugo",
"description": "Centrifugo broadcaster for laravel",
"keywords": [
"laravel-broadcaster",
"broadcaster",
"laravel",
"centrifugo",
"web socket",
"web-socket",
"websocket",
"socket",
"real time"
],
"license": "MIT",
"authors": [
{
"name": "Denis Zakharenko",
"email": "amx-serv@ya.ru",
"role": "Creator"
}
],
"homepage": "https://github.com/denis660/laravel-centrifugo",
"support": {
"email": "amx-serv@ya.ru",
"issues": "https://github.com/denis660/laravel-centrifugo/issues",
"source": "https://github.com/denis660/laravel-centrifugo"
},
"require": {
"php": "^8.0",
"ext-json": "*",
"laravel/framework": "^9.0|^10.0|^11.0|^12.0",
"guzzlehttp/guzzle": "~6.0|^7.0"
},
"require-dev": {
"orchestra/testbench": "^7.35|^8.14|^9.0|^10.0",
"phpunit/phpunit": "^9.3|^10.5|^11.5.3"
},
"autoload": {
"psr-4": {
"denis660\\Centrifugo\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"denis660\\Centrifugo\\Test\\": "tests/"
}
},
"extra": {
"laravel": {
"providers": [
"denis660\\Centrifugo\\CentrifugoServiceProvider"
]
}
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "phpunit"
}
Loading