data-catchup #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shopify Lighthouse CI | |
on: [push] | |
jobs: | |
lhci: | |
name: Lighthouse | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Lighthouse | |
uses: shopify/lighthouse-ci-action@1.0 | |
with: | |
app_id: ${{ secrets.SHOP_APP_ID }} | |
app_password: ${{ secrets.SHOP_APP_PASSWORD }} | |
store: ${{ secrets.SHOP_STORE }} | |
password: ${{ secrets.SHOP_PASSWORD }} | |
### If you want to add the ✅ status check on github, | |
### you need to configure these using github secrets. | |
lhci_github_app_token: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
### Lighthouse CI settings | |
# lhci_min_score_performance: 0.9 | |
# lhci_min_score_accessibility: 0.9 | |
### Run Lighthouse test on specific product/collection. | |
### More: https://shopify.dev/themes/tools/lighthouse-ci#arguments | |
product_handle: 'worst-sneakers' | |
collection_handle: 'sneakers' | |
# For more infos check out: https://shopify.dev/themes/tools/lighthouse-ci |