Skip to content

Commit

Permalink
Try treosh/lighthouse-ci-action
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 10, 2024
1 parent 106f9d8 commit e581204
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,17 @@
name: Test

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-latest,
]

lighthouse:
runs-on: ubuntu-latest
steps:
- uses: a11ywatch/[email protected]
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v11
with:
WEBSITE_URL: https://docs.python.org/dev/
# SITE_WIDE: true
# SUBDOMAINS: true
# TLD: false
# SITEMAP: true
FAIL_ERRORS_COUNT: 15
LIST: true
# FIX: false
# UPGRADE: false
UPLOAD: true
# COMPUTER_VISION_SUBSCRIPTION_KEY: ${{ secrets.COMPUTER_VISION_SUBSCRIPTION_KEY }}
# COMPUTER_VISION_ENDPOINT: ${{ secrets.COMPUTER_VISION_ENDPOINT }}
env:
# DEFAULT_RUNNERS: htmlcs,axe
PAGEMIND_IGNORE_WARNINGS: true
AI_DISABLED: true
urls: |
https://docs.python.org/dev/
https://docs.python.org/dev/whatsnew/3.13.html
https://docs.python.org/dev/library/pathlib.html
# budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

0 comments on commit e581204

Please sign in to comment.