mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-28 16:01:21 +00:00
34 lines
1,007 B
YAML
34 lines
1,007 B
YAML
name: Assertions and static report
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
demo:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Dependencies
|
|
run: npm add @unlighthouse/cli puppeteer
|
|
|
|
- name: Unlighthouse assertions and client
|
|
run: unlighthouse-ci --site <your-site> --build-static
|
|
|
|
- name: Deploy report to Netlify
|
|
uses: nwtgck/actions-netlify@v1.2
|
|
with:
|
|
publish-dir: './.unlighthouse'
|
|
production-branch: main
|
|
production-deploy: true
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
deploy-message: "New Release Deploy from GitHub Actions"
|
|
enable-pull-request-comment: false
|
|
enable-commit-comment: true
|
|
overwrites-pull-request-comment: true
|
|
env:
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DEMO_SITE_ID }}
|
|
timeout-minutes: 1
|