From 822514fdc178f6c22b16aa2f59f3ae235438f2af Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Fri, 9 Jun 2023 18:47:07 +0200 Subject: [PATCH] feat: Initial workflow for unlighthouse --- .github/workflows/seo.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/seo.yaml diff --git a/.github/workflows/seo.yaml b/.github/workflows/seo.yaml new file mode 100644 index 0000000..39f4ae9 --- /dev/null +++ b/.github/workflows/seo.yaml @@ -0,0 +1,34 @@ +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 --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