Skip to content

Commit

Permalink
Merge pull request #908 from CruGlobal/lighthouse-redone
Browse files Browse the repository at this point in the history
No-Jira - Implement LighthouseCI
  • Loading branch information
wrandall22 authored May 3, 2024
2 parents e75367d + 5c163d8 commit 6e336f7
Show file tree
Hide file tree
Showing 136 changed files with 7,109 additions and 1,708 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run-lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run LighthouseCI

on:
issue_comment:
types: [created]

jobs:
lighthouse:
if: |
github.event.issue.pull_request
&& contains(github.event.comment.body, 'run lighthouse')
&& (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'CONTRIBUTOR')
&& contains(github.event.issue.labels.*.name, 'Preview Environment')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.13.0
- name: 📦 Install Dependencies
run: yarn install --immutable --immutable-cache
- name: 🚨 Run Lighthouse
run: yarn lighthouse
env:
secrets: '{"JWT_SECRET":"JWT_SECRET","OKTA_CLIENT_SECRET":"OKTA_CLIENT_SECRET"}'
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
MPDX_USERNAME: ${{ secrets.MPDX_USERNAME }}
MPDX_PASSWORD: ${{ secrets.MPDX_PASSWORD }}
PREVIEW_URL: 'https://${{ github.head_ref }}.${{ secrets.AMPLIFY_APP_ID }}.amplifyapp.com'
- name: Make a PR Comment
uses: thollander/actions-comment-pull-request@v2
with:
filePath: lighthouse/lighthouse-results.md
comment_tag: lighthouse
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ node_modules

# Storybook
build-storybook.log

# Lighthouse
.lighthouseci
lighthouse-results.md
3,564 changes: 2,732 additions & 832 deletions .pnp.cjs

Large diffs are not rendered by default.

Loading

0 comments on commit 6e336f7

Please sign in to comment.