Skip to content

Commit

Permalink
chore: updated lighthouse config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajdeep Chandra committed Feb 7, 2024
1 parent 28b3ce6 commit e0c6c36
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ jobs:
- name: Install dependencies
run: yarn --frozen-lockfile

- name: Get docs URL
- name: Generate docs URL
id: docsURL
uses: actions/github-script@v6
with:
script: |
Expand All @@ -88,12 +89,14 @@ jobs:
const urlRegex = /(https?:\/\/[^\s]+)/g;
const docsURL = comment.match(urlRegex)?.[0];
core.setOutput('docsURL', docsURL);
- name: Run Lighthouse on urls and validate with lighthouserc
- name: Lighthouse CI Action
id: lighthouse
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
${{ docsURL }}
${{ steps.docsURL.outputs.docsURL }}
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

Expand Down

0 comments on commit e0c6c36

Please sign in to comment.