Skip to content

Use AirBnbs ESLint Config #72

Use AirBnbs ESLint Config

Use AirBnbs ESLint Config #72

Workflow file for this run

name: Lighthouse Report
on: issue_comment
jobs:
lighthouse:
runs-on: ubuntu-latest
if: >-
github.event.issue.pull_request &&
github.event.comment.user.login == 'render[bot]'
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create tmp directory
run: mkdir -p ${{ github.workspace }}/tmp/artifacts
- name: Get preview URL
env:
BODY: ${{ github.event.comment.body }}
run: |
PREVIEW_URL=$(echo "$BODY" | grep -o 'https://[a-zA-Z0-9.-]*\.onrender\.com' | head -n 1)
echo "PREVIEW_URL=$PREVIEW_URL" >> $GITHUB_ENV
- name: Generate Lighthouse report
uses: foo-software/lighthouse-check-action@master
with:
urls: '${{ env.PREVIEW_URL }}'
outputDirectory: ${{ github.workspace }}/tmp/artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: lighthouse-report
path: ${{ github.workspace }}/tmp/artifacts