Run Lighthouse CI for desktop and mobile #36
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: Run Lighthouse CI for desktop and mobile | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
jobs: | |
lhci: | |
name: Lighthouse CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: run Lighthouse CI | |
run: | | |
npm install -g @lhci/cli | |
lhci autorun --collect.settings.preset=desktop || echo "LHCI Desktop failed!" | |
lhci autorun || echo "LHCI Mobile failed!" |