Skip to content

Commit

Permalink
node 20 & actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseykulikov committed Feb 4, 2024
1 parent e4e4dc8 commit 51130f4
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/skip/LHCI-output-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
output-webhook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use output for sending data to API.
id: LHCIAction
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-assert-on-budget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
assert-on-budget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on urls and validate with budgets.json
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-assert-on-lighthouserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
assert-on-lighthouserc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on urls and validate with lighthouserc
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-lighthouse-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
lighthouse-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: yarn add --no-lockfile lighthouse-plugin-field-performance
- name: Audit URLs with Field Performance Plugin
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-static-dist-dir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
static-dist-dir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse against a static dist dir
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-upload-to-private-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
populate-ci-server-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on a URL and upload data to a private LHCI server.
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/LHCI-urls-interpolation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
multiple-urls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on multiple URLs and interpolate env variables.
uses: ./
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use node 16
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- name: Use node 20
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '20'
cache: 'yarn'
- run: yarn install
- run: yarn test
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on urls and validate with lighthouserc
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on urls and upload data to private lhci server
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse on urls with lighthouserc
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
static-dist-dir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse against a static dist dir
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Wait for the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@v1.4
id: netlify
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Lighthouse and test budgets
uses: treosh/lighthouse-ci-action@v10
with:
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm install # install dependencies, that includes Lighthouse plugins
- name: Audit URLs with Field Performance Plugin
uses: treosh/lighthouse-ci-action@v10
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:
output-webhook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use output for sending data to API.
id: LHCIAction
uses: ./
Expand Down Expand Up @@ -429,7 +429,7 @@ jobs:
lighthouse:
runs-on: [self-hosted, your-custom-label]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: install Node.js
- uses: browser-actions/setup-chrome@latest
Expand Down Expand Up @@ -465,7 +465,7 @@ jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Generate URLs
id: urls
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ outputs:
assertionResults:
description: 'Assertion results (content of assertion-results.json)'
runs:
using: 'node16'
using: 'node20'
main: 'src/index.js'
branding:
icon: 'bar-chart-2'
Expand Down

0 comments on commit 51130f4

Please sign in to comment.