Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit c8eea9b

Browse files
committed
wip
1 parent 8e422cb commit c8eea9b

File tree

5 files changed

+61
-34
lines changed

5 files changed

+61
-34
lines changed

.github/workflows/run-tests.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest, windows-latest]
12+
php: [7.4]
13+
laravel: [5.8.*, 6.*, 7.*]
14+
dependency-version: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 7.*
17+
testbench: 5.*
18+
- laravel: 6.*
19+
testbench: 4.*
20+
- laravel: 5.8.*
21+
testbench: 3.8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v1
28+
29+
- name: Cache dependencies
30+
uses: actions/cache@v1
31+
with:
32+
path: ~/.composer/cache/files
33+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
40+
coverage: none
41+
42+
- name: Install dependencies
43+
run: |
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46+
47+
- name: Execute tests
48+
run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel WebSockets 🛰
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/beyondcode/laravel-websockets.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-websockets)
4-
[![Build Status](https://img.shields.io/travis/beyondcode/laravel-websockets/master.svg?style=flat-square)](https://travis-ci.org/beyondcode/laravel-websockets)
4+
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/beyondcode/laravel-websockets/run-tests?label=tests)
55
[![Quality Score](https://img.shields.io/scrutinizer/g/beyondcode/laravel-websockets.svg?style=flat-square)](https://scrutinizer-ci.com/g/beyondcode/laravel-websockets)
66
[![Total Downloads](https://img.shields.io/packagist/dt/beyondcode/laravel-websockets.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-websockets)
77

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.1",
25+
"php": "^7.2",
2626
"ext-json": "*",
2727
"cboden/ratchet": "^0.4.1",
2828
"clue/buzz-react": "^2.5",
2929
"facade/ignition-contracts": "^1.0",
3030
"guzzlehttp/psr7": "^1.5",
31-
"illuminate/broadcasting": "5.7.* || 5.8.* || ^6.0",
32-
"illuminate/console": "5.7.* || 5.8.* || ^6.0",
33-
"illuminate/http": "5.7.* || 5.8.* || ^6.0",
34-
"illuminate/routing": "5.7.* || 5.8.* || ^6.0",
35-
"illuminate/support": "5.7.* || 5.8.* || ^6.0",
36-
"pusher/pusher-php-server": "~3.0 || ~4.0",
31+
"illuminate/broadcasting": "5.8.*|^6.0|^7.0",
32+
"illuminate/console": "5.8.*|^6.0|^7.0",
33+
"illuminate/http": "5.8.*|^6.0|^7.0",
34+
"illuminate/routing": "5.8.*|^6.0|^7.0",
35+
"illuminate/support": "5.8.*|^6.0|^7.0",
36+
"pusher/pusher-php-server": "^3.0|^4.0",
3737
"react/dns": "^1.1",
38-
"symfony/http-kernel": "~4.0",
38+
"symfony/http-kernel": "^4.0|^5.0",
3939
"symfony/psr-http-message-bridge": "^1.1"
4040
},
4141
"require-dev": {
42-
"mockery/mockery": "^1.2",
43-
"orchestra/testbench": "3.7.* || 3.8.* || ^4.0",
44-
"phpunit/phpunit": "^7.0 || ^8.0"
42+
"mockery/mockery": "^1.3",
43+
"orchestra/testbench": "3.8.*|^4.0 |^5.0",
44+
"phpunit/phpunit": "^8.0|^8.0"
4545
},
4646
"autoload": {
4747
"psr-4": {

tests/Statistics/Controllers/WebSocketsStatisticsControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function it_can_store_statistics()
2222

2323
$this->assertCount(1, $entries);
2424

25-
$this->assertArraySubset($this->payload(), $entries->first()->attributesToArray());
25+
$this->assertArrayHasKey('app_id', $entries->first()->attributesToArray());
2626
}
2727

2828
protected function payload(): array

0 commit comments

Comments
 (0)