Skip to content

Commit

Permalink
Merge pull request #1 from bayareawebpro/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
bayareawebpro authored Apr 25, 2020
2 parents ccc1aaf + 4dd7124 commit 747e733
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: ci
on:
push:
branches:
- dev
paths-ignore:
- 'README.md'
- 'LICENSE'
push:
branches:
- dev
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches:
- master
Expand All @@ -19,22 +19,17 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Cache Composer
uses: actions/cache@v1
with:
path: vendor
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}

- name: Composer Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist

- name: Lint
run: Lint

run: composer lint
- name: Unit Tests
run: Test

run: composer test
- name: Codecov
uses: codecov/[email protected]
with:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Laravel DOM Pipeline


![](https://github.com/bayareawebpro/laravel-dom-pipeline/workflows/ci/badge.svg)
![](https://codecov.io/gh/bayareawebpro/laravel-dom-pipeline/branch/master/graph/badge.svg)
![](https://img.shields.io/github/v/release/bayareawebpro/laravel-dom-pipeline.svg)
![](https://img.shields.io/packagist/dt/bayareawebpro/laravel-dom-pipeline.svg)
![](https://img.shields.io/badge/License-MIT-success.svg)


```shell script
composer require bayareawebpro/laravel-dom-pipeline
```
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"php": "^7.4",
"ext-dom": "*",
"ext-libxml": "*",
"illuminate/pipeline": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0"
"illuminate/pipeline": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0"
},
"require-dev": {
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.5",
"orchestra/testbench": "^5.0",
"nunomaduro/larastan": "^0.5"
},
"autoload": {
Expand Down
9 changes: 9 additions & 0 deletions src/DomPipelineServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@ public function register()
{
$this->app->bind('dom-pipeline', DomPipelineService::class);
}

/**
* Get the services provided by the provider.
* @return array
*/
public function provides()
{
return ['dom-pipeline'];
}
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace BayAreaWebPro\DomPipeline\Tests;

use BayAreaWebPro\DomPipeline\DomPipeline;
use Illuminate\Support\Str;
use BayAreaWebPro\DomPipeline\DomPipeline;
use Orchestra\Testbench\TestCase as BaseTestCase;
use BayAreaWebPro\DomPipeline\DomPipelineServiceProvider;

Expand Down
7 changes: 7 additions & 0 deletions tests/Unit/ProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ public function test_service_can_be_resolved()
$instance = app('dom-pipeline');
$this->assertTrue(($instance instanceof DomPipelineService));
}

public function test_declares_provided()
{
$this->assertTrue(in_array('dom-pipeline',
collect(app()->getProviders(DomPipelineServiceProvider::class))->first()->provides())
);
}
}

0 comments on commit 747e733

Please sign in to comment.