Unlighthouse - WIP #5
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: Unlighthouse - Demo Site | |
on: | |
workflow_dispatch: | |
jobs: | |
Unlighthouse-demo: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./unlighthouse | |
steps: | |
- uses: actions/checkout@v3 | |
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 }} |