Skip to content

Commit

Permalink
Merge 414f9fb into e8e7d56
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexLisenkov committed Dec 2, 2020
2 parents e8e7d56 + 414f9fb commit b129d8a
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 6,570 deletions.
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
all:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
- macos-latest
php-versions:
- '7.3'
- '7.4'
- '8.0'
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
tools: phpunit:9

- name: Composer Install
run: composer install --no-progress

- name: Unit tests
run: ./vendor/bin/phpunit --coverage-clover ./clover.xml

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=clover.xml --json_path=clover.json -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
vendor
.DS_Store
.phpunit.result.cache
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Send Push Notification in Laravel
[![Total Downloads](https://poser.pugx.org/alexlisenkov/laravel-web-push/downloads)](https://packagist.org/packages/alexlisenkov/laravel-web-push)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AlexLisenkov/laravel-web-push/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AlexLisenkov/laravel-web-push/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/AlexLisenkov/laravel-web-push/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/AlexLisenkov/laravel-web-push/?branch=master)
[![build](https://travis-ci.org/AlexLisenkov/laravel-web-push.svg?branch=master)](https://travis-ci.org/AlexLisenkov/laravel-web-push)
[![Coverage Status](https://coveralls.io/repos/github/AlexLisenkov/laravel-web-push/badge.svg?branch=master)](https://coveralls.io/github/AlexLisenkov/laravel-web-push?branch=master)
![CI](https://github.com/AlexLisenkov/laravel-web-push/workflows/CI/badge.svg)

[![More info](https://developers.google.com/web/fundamentals/push-notifications/images/svgs/server-to-push-service.svg)](https://developers.google.com/web/fundamentals/push-notifications/web-push-protocol)

Expand Down Expand Up @@ -107,7 +106,7 @@ class ExampleMessage extends PushMessage

protected $icon = 'https://placekitten.com/75/75';

// Or overwrite a getter
// Or override a getter
public function getData()
{
return User()->name;
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@
}
},
"require": {
"php": "^7.3 | ^8.0",
"simplito/elliptic-php": "^1.0",
"spomky-labs/base64url": "^2.0",
"ext-gmp": "*",
"ext-openssl": "*",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.5",
"web-token/jwt-framework": "^2.1",
"guzzlehttp/guzzle": "^7.2",
"web-token/jwt-framework": "^2.2",
"ext-mbstring": "*"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"phpunit/phpunit": "^8.5",
"orchestra/testbench": "~4.4"
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "~4.6"
},
"extra": {
"laravel": {
Expand Down
Loading

0 comments on commit b129d8a

Please sign in to comment.