Lighthouse CI #35
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: Lighthouse CI | |
on: | |
pull_request: | |
branches: | |
- main # Adjust this as needed | |
schedule: | |
- cron: '0 0 * * *' # Runs daily at midnight UTC. Adjust as necessary for your schedule. | |
jobs: | |
lighthouse: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install Lighthouse CI | |
run: npm install -g @lhci/cli | |
- name: Run Lighthouse CI | |
run: lhci autorun --config=./lighthouserc.json | |
env: | |
LHCI_GITHUB_TOKEN: ${{ secrets.LHCI_GITHUB_TOKEN }} | |