Skip to content
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
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,16 @@ jobs:
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Run test suite
run: vendor/bin/phpunit --testsuite unit
- name: Run lint
run: ./vendor/bin/phplint ./ --exclude=vendor

- name: Run unit tests
run: composer exec phpunit tests/unit

- name: Run acceptance tests
env:
PUSHERAPP_APPID: ${{ secrets.CI_APP_ID }}
PUSHERAPP_AUTHKEY: ${{ secrets.CI_APP_KEY }}
PUSHERAPP_SECRET: ${{ secrets.CI_APP_SECRET }}
PUSHERAPP_HOST: http://api-${{ secrets.CI_APP_CLUSTER }}.pusher.com
run: composer exec phpunit tests/acceptance
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ phpunit.xml
tests/config.php
vendor
.phpunit.result.cache
.phplint-cache
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pusher Channels HTTP PHP Library

[![Build Status](https://travis-ci.org/pusher/pusher-http-php.svg?branch=master)](https://travis-ci.org/pusher/pusher-http-php)
[![Tests](https://github.com/pusher/pusher-http-php/actions/workflows/test.yml/badge.svg)](https://github.com/pusher/pusher-http-php/actions/workflows/test.yml) [![Packagist Version](https://img.shields.io/packagist/v/pusher/pusher-php-server)](https://packagist.org/packages/pusher/pusher-php-server) [![Packagist License](https://img.shields.io/packagist/l/pusher/pusher-php-server)](https://packagist.org/packages/pusher/pusher-php-server) [![Packagist Downloads](https://img.shields.io/packagist/dm/pusher/pusher-php-server)](https://packagist.org/packages/pusher/pusher-php-server)

PHP library for interacting with the Pusher Channels HTTP API.

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"paragonie/sodium_compat": "^1.6"
},
"require-dev": {
"phpunit/phpunit": "^7.2|^8.5|^9.3"
"phpunit/phpunit": "^7.2|^8.5|^9.3",
"overtrue/phplint": "^2.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
define('PUSHERAPP_SECRET', getenv('PUSHERAPP_SECRET'));
define('PUSHERAPP_APPID', getenv('PUSHERAPP_APPID'));

define('PUSHERAPP_HOST', 'http://api.pusherapp.com');
define('PUSHERAPP_HOST', getenv('PUSHERAPP_HOST'));
}