Skip to content

Commit

Permalink
Test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Jun 24, 2020
1 parent f915c3d commit c158d91
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,5 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g lighthouse
- run: which lighthouse
- run: npm install
- run: composer run test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
vendor/
composer.lock
node_modules
package.json
yarn.lock
config.js
report.json
Expand Down
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "lighthouse-php",
"version": "0.0.1",
"main": "index.js",
"directories": {
"test": "tests"
},
"dependencies": {
"lighthouse": "^6.0.0"
},
"private": true,
"license": "MIT",
"bugs": {
"url": "https://github.com/octoper/lighthouse-php/issues"
},
"homepage": "https://github.com/octoper/lighthouse-php#readme"
}
3 changes: 2 additions & 1 deletion tests/Integration/LighthouseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use Octoper\Lighthouse\Lighthouse;

beforeEach(function () {
$this->lighthouse = (new Lighthouse())->setLighthousePath('./node_modules/.bin/lighthouse');
$this->lighthouse = (new Lighthouse)
->setLighthousePath('./node_modules/.bin/lighthouse');
});

it('can run only one audit', function () {
Expand Down

0 comments on commit c158d91

Please sign in to comment.