Skip to content

feat: lint JS in Markdown #930

feat: lint JS in Markdown

feat: lint JS in Markdown #930

Workflow file for this run

name: Audit site with Lighthouse CI
on: [pull_request]
jobs:
lhci-mobile:
name: Run mobile Lighthouse CI audits
if: github.repository_owner == 'inclusive-design' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Wait for Netlify deploy preview
uses: jakepartusch/wait-for-netlify-action@v1.4
id: netlify
with:
site_name: idrc
max_timeout: 300
- name: Run Lighthouse CI audits
uses: treosh/lighthouse-ci-action@v9
with:
runs: 3
urls: |
${{ steps.netlify.outputs.url }}
uploadArtifacts: true
temporaryPublicStorage: true
configPath: ./.lighthouserc.js
lhci-desktop:
name: Run desktop Lighthouse CI audits
if: github.repository_owner == 'inclusive-design' && github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Wait for Netlify deploy preview
uses: jakepartusch/wait-for-netlify-action@v1.4
id: netlify
with:
site_name: idrc
- name: Run Lighthouse CI audits
uses: treosh/lighthouse-ci-action@v9
with:
runs: 3
urls: |
${{ steps.netlify.outputs.url }}
uploadArtifacts: true
temporaryPublicStorage: true
configPath: ./.lighthouserc.js
env:
EMULATE_DEVICE: desktop