Skip to content

Commit

Permalink
Merge 60bba33 into fe74919
Browse files Browse the repository at this point in the history
  • Loading branch information
coxlr committed Oct 1, 2020
2 parents fe74919 + 60bba33 commit 7cd5c72
Show file tree
Hide file tree
Showing 13 changed files with 2,066 additions and 734 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [7.1, 7.2, 7.3, 7.4]
dependency-version: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ demo/_credentials.json
demo/_credentials[0-9].json
dist
vendor
.phpunit.result.cache
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"guzzlehttp/psr7": "^1.4.2",
"pubnub/pubnub": "^4.0.0",
"symfony/event-dispatcher": "^2|^3|^4|^5",
"guzzlehttp/guzzle": "^6.3.3"
"guzzlehttp/guzzle": "^6.3.3|^7.0"
},
"suggest": {
"ext-openssl": "to decrypt PubNub messages"
},
"require-dev": {
"phpunit/phpunit": "^7.5.12",
"phpunit/phpunit": "^7.5.12|^8.0|^9.0",
"php-coveralls/php-coveralls": "^2.1",
"macfja/phar-builder": "^0.2.8"
},
Expand Down

0 comments on commit 7cd5c72

Please sign in to comment.