Node.js CI - Complete a Lighthouse run. #705
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
# This workflow will do a clean installation of node dependencies, | |
# then do a Lighthouse run. | |
name: Node.js CI - Complete a Lighthouse run. | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
# on: workflow_dispatch | |
jobs: | |
lighthouse-run: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Node Version | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: 'package.json' | |
- name: Install Packages | |
run: npm --prefix lighthouse ci | |
- name: Lighthouse Run | |
run: npm run lighthouse | |
- name: Commit Lighthouse reports | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Adding Lighthouse reports | |
push_options: --force |