From c158d9155acd90893c0574821336ce9b5c75254e Mon Sep 17 00:00:00 2001 From: Vaggelis Yfantis Date: Wed, 24 Jun 2020 17:11:09 +0300 Subject: [PATCH] Test changes --- .github/workflows/tests.yml | 3 +-- .gitignore | 1 - package.json | 17 +++++++++++++++++ tests/Integration/LighthouseTest.php | 3 ++- 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 package.json diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 710fb74..2e27604 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/.gitignore b/.gitignore index 1979463..06b008c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ vendor/ composer.lock node_modules -package.json yarn.lock config.js report.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..b99c66a --- /dev/null +++ b/package.json @@ -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" +} diff --git a/tests/Integration/LighthouseTest.php b/tests/Integration/LighthouseTest.php index bf462a4..814ff80 100644 --- a/tests/Integration/LighthouseTest.php +++ b/tests/Integration/LighthouseTest.php @@ -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 () {