astro-ghostcms/.github/workflows/lighthouse.yml

28 lines
767 B
YAML
Raw Normal View History

2024-01-23 20:03:56 +00:00
name: Unlighthouse - Demo Site
on:
2024-01-23 20:07:47 +00:00
workflow_dispatch:
2024-01-23 20:03:56 +00:00
jobs:
Unlighthouse-demo:
runs-on: ubuntu-latest
2024-01-24 02:39:25 +00:00
defaults:
run:
working-directory: ./unlighthouse
2024-01-23 20:03:56 +00:00
steps:
2024-01-24 02:39:25 +00:00
- uses: actions/checkout@v3
2024-01-23 20:03:56 +00:00
with:
fetch-depth: 0
- name: Install Dependencies
run: npm install -g @unlighthouse/cli puppeteer netlify-cli
- name: Unlighthouse assertions and client
run: unlighthouse-ci --site demo.astro-ghostcms.xyz --budget 75 --build-static
- name: Deploy
run: netlify deploy --dir=.unlighthouse --prod --message="New Release Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}