From cdd4bc86d331ceb6aa7cdc9deb6e1b408748681a Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 07:44:45 +0100 Subject: [PATCH 1/7] Run tests on Windows --- .github/workflows/windows.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..bae68ba --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,36 @@ +name: Run Lighthouse plugin on Windows +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '20.x' + - name: Install sitespeed.io + run: | + npm install sitespeed.io -g + cd ../plugin-lighthouse + npm install + - name: Show sitespeed.io version + run: sitespeed.io --version + - name: Run tests using Lighthouse plugin + run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ + - name: Run tests using Lighthouse plugin as mobile + run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile + - name: Run tests with configuration file + run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.config ./test/config.js + - name: Run tests with flag file + run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.flags ./test/flags.json + - name: Test global install + run: | + npm install -g + sitespeed.io --plugins.add @sitespeed.io/plugin-lighthouse --plugins.remove browsertime https://www.sitespeed.io/ \ No newline at end of file From d40fa51e5838e541974a54aecbe1019975425bff Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 07:52:01 +0100 Subject: [PATCH 2/7] hepp --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index bae68ba..7610d94 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -33,4 +33,4 @@ jobs: - name: Test global install run: | npm install -g - sitespeed.io --plugins.add @sitespeed.io/plugin-lighthouse --plugins.remove browsertime https://www.sitespeed.io/ \ No newline at end of file + sitespeed.io --plugins.add "@sitespeed.io/plugin-lighthouse" --plugins.remove browsertime https://www.sitespeed.io/ \ No newline at end of file From a820677b87d77f93e75d576a2448f28130537c77 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 08:14:50 +0100 Subject: [PATCH 3/7] new test --- .github/workflows/windows.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7610d94..00a6496 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,6 +22,9 @@ jobs: npm install - name: Show sitespeed.io version run: sitespeed.io --version + shell: bash + - name: Check sitespeed.io version again + run: node $(npm bin -g)/sitespeed.io --version - name: Run tests using Lighthouse plugin run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ - name: Run tests using Lighthouse plugin as mobile From 454219de44e7bd1bb496d12b9d8d992c0b1e610b Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 08:23:15 +0100 Subject: [PATCH 4/7] hepp --- .github/workflows/windows.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 00a6496..90237de 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -23,17 +23,20 @@ jobs: - name: Show sitespeed.io version run: sitespeed.io --version shell: bash - - name: Check sitespeed.io version again - run: node $(npm bin -g)/sitespeed.io --version - name: Run tests using Lighthouse plugin run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ + shell: bash - name: Run tests using Lighthouse plugin as mobile run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile + shell: bash - name: Run tests with configuration file run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.config ./test/config.js + shell: bash - name: Run tests with flag file run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.flags ./test/flags.json + shell: bash - name: Test global install run: | npm install -g - sitespeed.io --plugins.add "@sitespeed.io/plugin-lighthouse" --plugins.remove browsertime https://www.sitespeed.io/ \ No newline at end of file + sitespeed.io --plugins.add "@sitespeed.io/plugin-lighthouse" --plugins.remove browsertime https://www.sitespeed.io/ + shell: bash \ No newline at end of file From cdcffc0230965d6a64745d6245b3672d48953bea Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 08:36:37 +0100 Subject: [PATCH 5/7] try path --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 90237de..4a8f0af 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -24,7 +24,7 @@ jobs: run: sitespeed.io --version shell: bash - name: Run tests using Lighthouse plugin - run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ + run: sitespeed.io --plugins.add ${{ github.workspace }}/index.js --plugins.remove browsertime https://www.sitespeed.io/ shell: bash - name: Run tests using Lighthouse plugin as mobile run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile From 50c1f973e965c22d8ba55f484f0f9b6eca6e4ea3 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 08:48:02 +0100 Subject: [PATCH 6/7] windows :D --- .github/workflows/windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4a8f0af..7c65280 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -24,7 +24,7 @@ jobs: run: sitespeed.io --version shell: bash - name: Run tests using Lighthouse plugin - run: sitespeed.io --plugins.add ${{ github.workspace }}/index.js --plugins.remove browsertime https://www.sitespeed.io/ + run: sitespeed.io --plugins.add file:///${{ github.workspace }}/index.js --plugins.remove browsertime https://www.sitespeed.io/ shell: bash - name: Run tests using Lighthouse plugin as mobile run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile From c4bd038340a6ead8628939928d1e419a94df37c6 Mon Sep 17 00:00:00 2001 From: soulgalore Date: Fri, 1 Dec 2023 09:10:55 +0100 Subject: [PATCH 7/7] test global first --- .github/workflows/windows.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 7c65280..8b56ea2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -23,8 +23,13 @@ jobs: - name: Show sitespeed.io version run: sitespeed.io --version shell: bash + - name: Test global install + run: | + npm install -g + sitespeed.io --plugins.add "@sitespeed.io/plugin-lighthouse" --plugins.remove browsertime https://www.sitespeed.io/ + shell: bash - name: Run tests using Lighthouse plugin - run: sitespeed.io --plugins.add file:///${{ github.workspace }}/index.js --plugins.remove browsertime https://www.sitespeed.io/ + run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ shell: bash - name: Run tests using Lighthouse plugin as mobile run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --mobile @@ -34,9 +39,4 @@ jobs: shell: bash - name: Run tests with flag file run: sitespeed.io --plugins.add ./index.js --plugins.remove browsertime https://www.sitespeed.io/ --lighthouse.flags ./test/flags.json - shell: bash - - name: Test global install - run: | - npm install -g - sitespeed.io --plugins.add "@sitespeed.io/plugin-lighthouse" --plugins.remove browsertime https://www.sitespeed.io/ shell: bash \ No newline at end of file